Skip to content
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

In JupyterLab 4.02, ipywidgets throws error in console on saving widget state. #3790

Closed
kolibril13 opened this issue Jun 21, 2023 · 1 comment · Fixed by #3752
Closed

In JupyterLab 4.02, ipywidgets throws error in console on saving widget state. #3790

kolibril13 opened this issue Jun 21, 2023 · 1 comment · Fixed by #3752

Comments

@kolibril13
Copy link

In JupyterLab 4.02 with the setting "save widget state automatically" enabled, I get the following message in the console when saving the notebook (even if there's no widget present in the notebook):

TypeError: this._context.model.metadata.set is not a function at f._saveState

The error does not come when the "save widget state automatically" setting is not activated.

here is the environment that I've used:

python3.11 -m venv .venv
source .venv/bin/activate   
pip install jupyterlab   
pip install ipywidgets 
python -m jupyterlab
image

I've also tested this in an older version (pip install jupyterlab==3.6), and there it worked fine without the error.

Context: I've observed this error while working on this issue widgetti/ipyreact#40

@martinRenou
Copy link
Member

Thanks for opening an issue. This should be fixed by #3752

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants