New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JupyterLab manager: widget model not found #2748
Comments
Digging into that a little bit: it looks like ipywidgets/packages/jupyterlab-manager/src/manager.ts Lines 435 to 443 in 7cb20cd
Which should be where models are created and registered:
|
Stepping into the code a bit more: it looks like several connections to the kernel are established from the document context when the notebook is open for the first time and the kernel is not running yet. However at some point, At the time when the first
Which would explain why the comm target is not registered. |
For context:
So perhaps the help menu is somehow connecting first, before the document? I haven't seen that, and thought it would not happen. Regardless, it looks like there is no way when creating a session connection to say that the kernel connection should not handle comms. I think the session connection should have a new initialization argument for the kernel connection options, so that the help menu can specify that its kernel connection does not handle comms ever. |
@jtpio - JupyterLab 2.0b3, released today, has a jupyterlab/jupyterlab#7820, which should solve the issue I mention above, if that is the problem that you are seeing. Can you check with JLab 2.0b3? |
Thanks @jasongrout, just tried with the latest alpha and it looks like it fixes it! |
Right, this seems to be where this check is happening: |
Closing as fixed in JupyterLab 2.0b3 by jupyterlab/jupyterlab#7820. |
Running from the
master
branch and following these steps:It looks like the widget manager is unable to recreate the widgets after re-executing the cells:
The text was updated successfully, but these errors were encountered: