Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share a jupyter notebook with plotly charts?

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.

like image 426
Pedro Braz Avatar asked Oct 19 '25 22:10

Pedro Braz


1 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:

  1. Creating the charts with Plotly Offline
  2. cd into your directory where the notebook is held
  3. convert the notebook to a static html file by typing ipython nbconvert [YOUR NOTEBOOK NAME].ipynb
like image 91
Sam Avatar answered Oct 22 '25 11:10

Sam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!