-
Notifications
You must be signed in to change notification settings - Fork 947
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
ipykernel error with ipywidgets 8.1 and jupyterlite #3819
Comments
Running into the same error in jupyter_lite with https://mystmd.org embedding of widgets, which worked with |
In order to fix this, the pyodide kernel in jupyterlite needs to update its ipykernel mock package here to include a mock of this version_info. See https://github.com/jupyterlite/pyodide-kernel/tree/main/packages/pyodide-kernel/py/ipykernel/ipykernel Happy to review a PR, I can also do it myself later this week. |
Wouldn't it be possible to remove the mock if |
Thinking about it, removing the mock of ipykernel means breaking support for old version of ipywidgets that were still relying on importing ipykernel stuffs. If that is fine for you, then I can indeed remove the ipykernel mock and make use of the comm module. Otherwise, updating the mock to include a version_info variable may be the way to go for now. |
Ah maybe that's indeed the easiest and less disruptive path for now 👍 We could try using the |
Just released And updated the demo repo to use this version: |
Wow! Thanks so much - that was super speedy! |
Thank you! These are working again in myst! |
Description
ipywidgets 8.1 raises error with ipykernel
Reproduce
I ran into this while running the examples on https://jupyterlite.github.io/demo/lab/index.html
Expected behavior
Examples work as expected with ipywidgets==8.0
The text was updated successfully, but these errors were encountered: