Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
195
rated 0 times [  197] [ 2]  / answers: 1 / hits: 9409  / 2 Years ago, wed, september 14, 2022, 12:00:00

I have troubles replicating a Jupyter Lab install on a new PC. It is working fine on my previous one.
I am unable to display simple widgets (like a checkbox from ipywidgets or ipyvuetify).
I checked that jupyter-widgets is enable with jupyter labextension list. The results is :


    jupyter-vue v1.7.0 enabled ok
jupyter-vuetify v1.8.4 enabled ok
@jupyter-widgets/jupyterlab-manager v5.0.2 enabled ok (python, jupyterlab_widgets)

In the notebook, when i try to display a widget, the cell display a Javascrip error :


    [Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'CheckboxModel' from module '@jupyter-widgets/controls'
Error: Module @jupyter-widgets/controls, version ^1.5.0 is not registered, however,
2.0.0 is
at f.loadClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-
manager/static/134.083e6b37f2f7b2f04b5e.js?v=083e6b37f2f7b2f04b5e:1:74976)
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.86360d749a1ef5f29afb.js?
v=86360d749a1ef5f29afb:2:924842)
at async b._handleMessage
(http://localhost:8888/static/lab/jlab_core.86360d749a1ef5f29afb.js?
v=86360d749a1ef5f29afb:2:926832)

More From » jupyter-lab

 Answers
19

That error is consistent with one noted here in an issue report recently. The suggestion there is to change to ipywidgets version 7.7.2 or 7.6.5 to fix this issue. Also, see the note here, too.


[#30] Wednesday, July 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mathewb

Total Points: 535
Total Questions: 95
Total Answers: 96

Location: British Indian Ocean Territory
Member since Fri, Oct 15, 2021
3 Years ago
mathewb questions
;