8000 publish IPYNB and strip nbconvert colors · ablarry/plotly.py@626e157 · GitHub
[go: up one dir, main page]

Skip to content

Commit 626e157

Browse files
publish IPYNB and strip nbconvert colors
1 parent 2aebcaf commit 626e157

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,15 @@ jobs:
440440
git push --force git@github.com:plotly/plotly.py-docs.git master:built
441441
rm -rf .git
442442
cd ../..
443+
cd build/ipynb
444+
git init
445+
git config user.name plotlydocbot
446+
git config user.email accounts@plot.ly
447+
git add *
448+
git commit -m "build of https://github.com/plotly/plotly.py/commit/${CIRCLE_SHA1}"
449+
git push --force git@github.com:plotly/plotly.py-docs.git master:built_ipynb
450+
rm -rf .git
451+
cd ../..
443452
fi
444453
tar -zcf build/html.tgz build/html
445454
rm -rf build/html build/ipynb

doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $(HTML_DIR)/2019-07-03-%.html: $(IPYNB_DIR)/%.ipynb
4040
@jupyter nbconvert $< --to html --template nb.tpl \
4141
--ExecutePreprocessor.timeout=600\
4242
--output-dir $(HTML_DIR) --output 2019-07-03-$*.html \
43-
--execute > $(FAIL_DIR)/$* 2>&1 && rm -f $(FAIL_DIR)/$*
43+
--execute 2>&1 | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" > $(FAIL_DIR)/$* && rm -f $(FAIL_DIR)/$*
4444

4545

4646
$(REDIR_DIR)/2019-07-03-redirect-next-%.html: $(IPYNB_DIR)/%.ipynb

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Plotly Express density contours can be [continuously-colored](/python/colorscale
7676
import plotly.express as px
7777
df = px.data.tips()
7878

79-
fig = px.density_contour(df, x="total_bill", y="tip")
79+
fig = px.density_contourfff(df, x="total_bill", y="tip")
8080
fig.update_traces(contours_coloring="fill", contours_showlabels = True)
8181
fig.show()
8282
```

0 commit comments

Comments
 (0)
0