Hi all,
Iโm working on a big refactor of the plotly.py rendering subsystem in https://github.com/plotly/plotly.py/pull/1474, and one of the new renderers is going to be an iframe
renderer that stores each figure as a separate HTML file in a directory next to the notebook and then inserts an iframe in the notebook that references the HTML file.
I would appreciate it if some folks who have notebooks that are bogging down JupyterLab could give this branch a try (installation instructions https://github.com/plotly/plotly.py/pull/1474#issuecomment-476663406) and report back on whether the iframe
renderer improves responsiveness. To use the iframe renderer on this branch, donโt call init_notebook_mode()
, but do callโฆ
import plotly.io as pio
pio.renderers.default = 'iframe'
once at the top of the notebook before displaying figure with iplot
.
One limitation of the As of 3.8.1 the iframe
renderer to be aware of is that doesnโt support responsive resizing.iframe
renderer supports resizing.
Thanks,
-Jon