Skip to content

Commit a6fed9b

Browse files
merge doc-prod into master
2 parents 18c5643 + fc2c938 commit a6fed9b

File tree

118 files changed

+2055
-432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2055
-432
lines changed

.circleci/config.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ jobs:
374374
docker:
375375
# specify the version you desire here
376376
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
377-
- image: circleci/python:3.6.8-node
377+
- image: circleci/python:3.7-stretch-node-browsers
378378

379379
working_directory: ~/project
380380

@@ -400,12 +400,13 @@ jobs:
400400
. venv/bin/activate
401401
npm install [email protected]
402402
npm install orca
403+
pip install -U pip
403404
pip uninstall -y plotly
404405
pip install -r requirements.txt
405406
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
406407
pip uninstall -y plotly
407408
cd ../packages/python/plotly
408-
python3 setup.py install
409+
pip install -e .
409410
cd ../../../doc
410411
fi
411412
echo 'export PATH="/home/circleci/project/doc/node_modules/.bin:$PATH"' >> $BASH_ENV
@@ -463,6 +464,15 @@ jobs:
463464
command: |
464465
cd doc
465466
. venv/bin/activate
467+
# For the API doc, we need to use the local version of plotly
468+
# since we are tweaking the source because of
469+
# graph_objs/graph_objects
470+
if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
471+
pip uninstall -y plotly
472+
cd ../packages/python/plotly
473+
pip install -e .
474+
cd ../../../doc
475+
fi
466476
cd apidoc
467477
make html
468478
if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
@@ -478,12 +488,14 @@ jobs:
478488
rm -rf .git
479489
cd ../..
480490
fi
481-
482491
cd ../..
483492
484493
- store_artifacts:
485494
path: doc/build
486495
destination: doc/build
496+
- store_artifacts:
497+
path: doc/apidoc/_build/
498+
destination: doc/apidoc/_build/
487499

488500
workflows:
489501
version: 2

binder/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ datashader
1616
pyarrow
1717
cufflinks==0.17.3
1818
kaleido
19+
scikit-learn
20+
umap-learn

doc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ $(HTML_DIR)/2019-07-03-%.html: $(IPYNB_DIR)/%.ipynb
3838
@mkdir -p $(FAIL_DIR)
3939
@echo "[nbconvert] $<"
4040
@jupyter nbconvert $< --to html --template nb.tpl \
41+
--ExecutePreprocessor.timeout=600\
4142
--output-dir $(HTML_DIR) --output 2019-07-03-$*.html \
4243
--execute > $(FAIL_DIR)/$* 2>&1 && rm -f $(FAIL_DIR)/$*
4344

doc/apidoc/Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,24 @@ help:
2222
sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*.py
2323
sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*/*.py
2424
sed -i 's/:class:`plotly.graph_objects/:class:`plotly.graph_objs/g' ../../packages/python/plotly/plotly/graph_objs/*/*/*/*.py
25+
# Copy _plotly_utils file so that they appear in the API doc
2526
cp ../../packages/python/plotly/_plotly_utils/colors/sequential.py ../../packages/python/plotly/_plotly_utils/colors/diverging.py ../../packages/python/plotly/_plotly_utils/colors/qualitative.py ../../packages/python/plotly/_plotly_utils/colors/cyclical.py ../../packages/python/plotly/_plotly_utils/colors/colorbrewer.py ../../packages/python/plotly/_plotly_utils/colors/carto.py ../../packages/python/plotly/_plotly_utils/colors/cmocean.py ../../packages/python/plotly/plotly/colors
2627
cp ../../packages/python/plotly/_plotly_utils/colors/sequential.py ../../packages/python/plotly/_plotly_utils/colors/diverging.py ../../packages/python/plotly/_plotly_utils/colors/qualitative.py ../../packages/python/plotly/_plotly_utils/colors/cyclical.py ../../packages/python/plotly/_plotly_utils/colors/colorbrewer.py ../../packages/python/plotly/_plotly_utils/colors/carto.py ../../packages/python/plotly/_plotly_utils/colors/cmocean.py ../../packages/python/plotly/plotly/express/colors
28+
# Run sphinx-apidoc script to create hierarchy of rst files to generate
29+
# docstrings. The first path is the one to process, the following ones
30+
# are excluded from the search.
31+
rm -rf _build generated
2732
sphinx-apidoc -M -o generated ../../packages/python/plotly/plotly ../../packages/python/plotly/plotly/validators ../../packages/python/plotly/plotly/tests ../../packages/python/plotly/plotly/matplotlylib/ ../../packages/python/plotly/plotly/offline ../../packages/python/plotly/plotly/api
33+
# Run sphinx-build to build html pages from the rst pages
2834
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2935
git checkout -- ../../packages/python/plotly/plotly/graph_objs
36+
# Remove files which were added only for docstring generation
3037
rm ../../packages/python/plotly/plotly/colors/diverging.py ../../packages/python/plotly/plotly/colors/sequential.py ../../packages/python/plotly/plotly/colors/qualitative.py ../../packages/python/plotly/plotly/colors/cyclical.py ../../packages/python/plotly/plotly/colors/colorbrewer.py ../../packages/python/plotly/plotly/colors/carto.py ../../packages/python/plotly/plotly/colors/cmocean.py
3138
rm ../../packages/python/plotly/plotly/express/colors/diverging.py ../../packages/python/plotly/plotly/express/colors/sequential.py ../../packages/python/plotly/plotly/express/colors/qualitative.py ../../packages/python/plotly/plotly/express/colors/cyclical.py ../../packages/python/plotly/plotly/express/colors/colorbrewer.py ../../packages/python/plotly/plotly/express/colors/carto.py ../../packages/python/plotly/plotly/express/colors/cmocean.py
3239
rename 's/graph_objs/graph_objects/' _build/html/*.html _build/html/generated/*.html
3340
mv _build/html/generated/plotly.graph_objs.html _build/html/generated/plotly.graph_objects.html
34-
sed -i 's/graph_objs/graph_objects/g' _build/html/*.html
35-
sed -i 's/graph_objs/graph_objects/g' _build/html/*.inv
36-
sed -i 's/graph_objs/graph_objects/g' _build/html/*.js
37-
sed -i 's/graph_objs/graph_objects/g' _build/html/generated/*.html
41+
sed -i 's/graph_objs/graph_objects/g' _build/html/*.html
42+
sed -i 's/graph_objs/graph_objects/g' _build/html/*.inv
43+
sed -i 's/graph_objs/graph_objects/g' _build/html/*.js
44+
sed -i 's/graph_objs/graph_objects/g' _build/html/generated/*.html
3845
sed -i 's/graph_objs/graph_objects/g' _build/html/generated/generated/*.html

doc/python/2D-Histogram.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fig = go.Figure(go.Histogram2d(x=x, y=y, histnorm='probability',
137137
fig.show()
138138
```
139139
### Sharing bin settings between 2D Histograms
140-
This example shows how to use [bingroup](https://plotly.com/python/reference/#histogram-bingroup) attribute to have a compatible bin settings for both histograms. To define `start`, `end` and `size` value of x-axis and y-axis seperatly, set [ybins](https://plotly.com/python/reference/#histogram2dcontour-ybins) and `xbins`.
140+
This example shows how to use [bingroup](https://plotly.com/python/reference/histogram/#histogram-bingroup) attribute to have a compatible bin settings for both histograms. To define `start`, `end` and `size` value of x-axis and y-axis seperatly, set [ybins](https://plotly.com/python/reference/histogram2dcontour/#histogram2dcontour-ybins) and `xbins`.
141141

142142
```python
143143
import plotly.graph_objects as go
@@ -236,4 +236,4 @@ fig.show()
236236
```
237237

238238
#### Reference
239-
See https://plotly.com/python/reference/#histogram2d for more information and chart attribute options!
239+
See https://plotly.com/python/reference/histogram2d/ for more information and chart attribute options!

doc/python/2d-histogram-contour.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,4 @@ fig.show()
249249
```
250250

251251
#### Reference
252-
See https://plotly.com/python/reference/#histogram2dcontour for more information and chart attribute options!
252+
See https://plotly.com/python/reference/histogram2dcontour/ for more information and chart attribute options!

doc/python/3d-bubble-charts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fig = go.Figure(data=go.Scatter3d(
107107
mode = 'markers',
108108
marker = dict(
109109
sizemode = 'diameter',
110-
sizeref = 750, # info on sizeref: https://plotly.com/python/reference/#scatter-marker-sizeref
110+
sizeref = 750, # info on sizeref: https://plotly.com/python/reference/scatter/#scatter-marker-sizeref
111111
size = planet_diameter,
112112
color = planet_colors,
113113
)
@@ -146,7 +146,7 @@ fig = go.Figure(go.Scatter3d(
146146
mode = 'markers',
147147
marker = dict(
148148
sizemode = 'diameter',
149-
sizeref = 750, # info on sizeref: https://plotly.com/python/reference/#scatter-marker-sizeref
149+
sizeref = 750, # info on sizeref: https://plotly.com/python/reference/scatter/#scatter-marker-sizeref
150150
size = planet_diameter,
151151
color = temperatures,
152152
colorbar_title = 'Mean<br>Temperature',
@@ -166,4 +166,4 @@ fig.show()
166166

167167
#### Reference
168168

169-
See https://plotly.com/python/reference/#scatter3d and https://plotly.com/python/reference/#scatter-marker-sizeref <br>for more information and chart attribute options!
169+
See https://plotly.com/python/reference/scatter3d/ and https://plotly.com/python/reference/scatter/#scatter-marker-sizeref <br>for more information and chart attribute options!

doc/python/3d-camera-controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,4 @@ fig.show()
290290
#### Reference
291291

292292

293-
See https://plotly.com/python/reference/#layout-scene-camera for more information and chart attribute options!
293+
See https://plotly.com/python/reference/layout/scene/#layout-scene-camera for more information and chart attribute options!

doc/python/3d-isosurface-plots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,4 +235,4 @@ fig.show()
235235
```
236236

237237
#### Reference
238-
See https://plotly.com/python/reference/#isosurface for more information and chart attribute options!
238+
See https://plotly.com/python/reference/isosurface/ for more information and chart attribute options!

doc/python/3d-line-plots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ fig.show()
120120

121121
#### Reference
122122

123-
See https://plotly.com/python/reference/#scatter3d-marker-line for more information and chart attribute options!
123+
See https://plotly.com/python/reference/scatter3d/#scatter3d-marker-line for more information and chart attribute options!

0 commit comments

Comments
 (0)