juba / pyobsplot

Observable Plot in Jupyter notebooks and Quarto documents
https://juba.github.io/pyobsplot/
MIT License
184 stars 8 forks source link

Widget renderer output lost when notebook is closed in JupyterLab #27

Open harrylojames opened 4 months ago

harrylojames commented 4 months ago

JupyterLab doesn't save widget output state when the file is closed, so all cells have to be recomputed to see the output.

When using the jsdom renderer, output is saved between sessions.

As with https://github.com/juba/pyobsplot/issues/2 this is probably an upstream issue!

This appears to be the relevant issue https://github.com/jupyter-widgets/ipywidgets/issues/3823 and it looks like people are making progress to fix it.

I tried downgrading jupyterlab and ipywidgets as suggested here without any luck. https://github.com/jupyterlab/jupyterlab/issues/15361#issuecomment-1828456850

harrylojames commented 4 months ago

I believe this is now the relevant issue https://github.com/jupyter-widgets/ipywidgets/issues/3888