Does anyone knows how should I share a jupyter notebook (with python3) that contains plotly made charts ? So far I use github to share notebooks, but the plotly charts just won't show up on it.
2 Answers
You need to use Plotly Offline for iPython Notebooks. The link shows the syntax for creating charts. If you create the charts in offline mode, you can covert the notebook to html and share it with anyone. You would do this by:
- Creating the charts with Plotly Offline
cdinto your directory where the notebook is held- convert the notebook to a static html file by typing
ipython nbconvert [YOUR NOTEBOOK NAME].ipynb
3 Comments
Pedro Braz
Where should I type
ipython nbconvert ... ? inside the notebook or a cmd ?Sam
type it at the cmd after you've cd'd to the proper directory
Pedro Braz
going to File > Download As > html worked just fine ! thanks for the effort
If you use kyso.io (disclaimer: I founded kyso) you can share notebooks online easily and it supports plotly.
- Here is a plotly example: https://kyso.io/laura/plotly-example/
you can share a notebook using these commands
kyso create "some study title" kyso push "a version message"