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

Javascript error box appears instead of an image #53

Open
slavistan opened this issue Sep 3, 2022 · 1 comment
Open

Javascript error box appears instead of an image #53

slavistan opened this issue Sep 3, 2022 · 1 comment

Comments

@slavistan
Copy link

slavistan commented Sep 3, 2022

Hi! I'm trying to produce a few simple bounding boxes for a set of images. Unfortunately, I run into the following error using the basic example from the project readme:

image

Clicking the box expands the following message:

[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'InnotaterModel' from module 'jupyter-innotater'
Error: No version of module jupyter-innotater is registered
    at f.loadClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.083e6b37f2f7b2f04b5e.js?v=083e6b37f2f7b2f04b5e:1:74855)
    at f.loadModelClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.467514c324d2bcc23502.js?v=467514c324d2bcc23502:1:10721)
    at f._make_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.467514c324d2bcc23502.js?v=467514c324d2bcc23502:1:7517)
    at f.new_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.467514c324d2bcc23502.js?v=467514c324d2bcc23502:1:5137)
    at f.handle_comm_open (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.467514c324d2bcc23502.js?v=467514c324d2bcc23502:1:3894)
    at _handleCommOpen (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.083e6b37f2f7b2f04b5e.js?v=083e6b37f2f7b2f04b5e:1:73392)
    at b._handleCommOpen (http://localhost:8888/static/lab/jlab_core.da7da3bf6a92a54183c1.js?v=da7da3bf6a92a54183c1:2:994423)
    at async b._handleMessage (http://localhost:8888/static/lab/jlab_core.da7da3bf6a92a54183c1.js?v=da7da3bf6a92a54183c1:2:996413)

I'm trying to run jupyter-innotater inside Jupyter Lab, having installed it via conda install -c conda-forge jupyter_innotater.

Here's the output of jupyter --version, just in case. If more input is helpful to debug this issue, please let me know.

IPython          : 8.4.0
ipykernel        : 6.15.1
ipywidgets       : 8.0.1
jupyter_client   : 7.3.5
jupyter_core     : 4.11.1
jupyter_server   : 1.18.1
jupyterlab       : 3.4.5
nbclient         : 0.6.7
nbconvert        : 7.0.0
nbformat         : 5.4.0
notebook         : 6.4.12
qtconsole        : not installed
traitlets        : 5.3.0
@danlester
Copy link
Member

Thank you for this. I think the problem is with ipywidgets 8.0. Innotater needs to undergo a migration to support that, as described here: https://ipywidgets.readthedocs.io/en/stable/migration_guides.html

I don't have any time or funding to do this myself right now. I would be very happy to accept a Pull Request if anyone wants to take a look.

I would support a PR that simply works with ipywidgets 8.0+ without backwards compatibility.

I hope this helps explain the problem at least... In the meantime, it should be possible to get Innotater (and many other widgets!) to work with slightly older versions of your setup, in particular ipywidgets 7.

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

No branches or pull requests

2 participants