Closed
Description
Dear all
The following use case:
I use jupyter with plotly. In some notebooks we plot large amount of data > 1e6 points. Embedding the plot directly in the notebook causes the notebooks to get very large > 100Mb.
This causes issues with
- saving in jupyter Jupyter: Large notebook fails to save
- saving incremental progress because the files are so huge
- with version control of the notebooks, since the diffs are huge.
The following solution seems to solve these issues for me:
filename = 'results/foo.html'
plotly.offline.plot(fig, filename=filename)
IPython.display.display(IPython.display.IFrame(src=filename, width=1200, height=800))
This saves the picture to an external file and embeds the contents of this file in Jupyter, therefore bypassing all issues mentioned above. Since googling showed that other users sometimes have similar issues maybe it is a good idea to add the above code to plotly.offline.iplot and make it available via a option?
Best regards
Nikolai
Metadata
Metadata
Assignees
Labels
No labels