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

JS error in JupyterLab #123

Open
jovenitti opened this issue Sep 26, 2024 · 1 comment
Open

JS error in JupyterLab #123

jovenitti opened this issue Sep 26, 2024 · 1 comment
Labels
upstream A bug in one of our dependencies

Comments

@jovenitti
Copy link

When trying to run the following code in a notebook

from ipyaladin import Aladin
aladin = Aladin()
aladin

I get the following error:

[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'AnyModel' from module 'anywidget'
Error: No version of module anywidget is registered
at f.loadClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.40eaa5b8e976096d50b2.js?v=40eaa5b8e976096d50b2:1:74856)
at f.loadModelClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:10729)
at f._make_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:7517)

From Jupyter Lab v3.5.2 (Jupyter Server 2.5.0).
anywidget version 0.9.2

Note that using VSCode (with the same jupyter kernel) it works.

@ManonMarchand
Copy link
Member

Hi! 🙂

I think this was solved in anywidget here manzt/anywidget#553 . It didn't work with jupyterlab 3 before

So you have two solutions:

  • either upgrade jupyterlab to version 4
  • or upgrade anywidget to a version more recent than this commit (at least 0.9.10)

Hope this works

@ManonMarchand ManonMarchand added the upstream A bug in one of our dependencies label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream A bug in one of our dependencies
Projects
None yet
Development

No branches or pull requests

2 participants