Ipywidgets: reopen notebook ipywidget in jlab - Error creating widget: could not find model

Created on 20 Aug 2017  路  6Comments  路  Source: jupyter-widgets/ipywidgets

I am using:

  • JupyterLab v0.26.5
  • @jupyter-widgets/[email protected]
  • ipywidgets-7.0.0
  • widgetsnbextension-3.0.0

I created a notebook with Jupyterlab and some ipywidgets - Textbox and int slider. When I close the notebook and reopen the notebook, the kernel is still attached but the widget has disappeared and instead shows:

Error creating widget: could not find model

In the notebook, when I close the notebook and reopen it the values in the Textbox and slider are persistent and do not get deleted. Here, to even see the widget again I have to re-run the cell

jupyterlab resolved-locked

Most helpful comment

Just tested jlab 1.0.0a3 and it seems that this problem has been resolved ;)
Thanks, great team

All 6 comments

Thanks. We haven't implemented this yet for JupyterLab, so I'm setting this to the Future milestone.

(If you want to try contributing this, the code for the classic notebook extension to do this starts around https://github.com/jupyter-widgets/ipywidgets/blob/67af059687205f10a339472f72cd86d2b34948c2/widgetsnbextension/src/manager.js#L47

Same thing happens with plots opened using %matplotlib ipympl.

Current jupyter notebook displays a static image when opening a previous notebook.

Has there been any development on this?
I can see ipywidget 7.1.2 is out.

I would like to contribute but when I tried it I wasn't able to figure it out =(

Just tested jlab 1.0.0a3 and it seems that this problem has been resolved ;)
Thanks, great team

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

reckoner picture reckoner  路  6Comments

pleabargain picture pleabargain  路  5Comments

SimonEnsemble picture SimonEnsemble  路  5Comments

hangyao picture hangyao  路  6Comments

aidanheerdegen picture aidanheerdegen  路  4Comments