Ipywidgets and JupyterLab
See original GitHub issueI have seen a few other people complain about this issue, but I am having trouble getting ipywidgets to work with JupyterLab. I setup a conda environment and installed jupyter lab, and various other extensions. I made sure to follow https://github.com/jupyter-widgets/ipywidgets/tree/master/packages/jupyterlab-manager#version-compatibility to stay compatible. I have jupyterlab 0.35.4, and jupyterlab-manager 0.38.1.
Related issues?
- https://github.com/jupyter-widgets/ipywidgets/issues/2006
- https://github.com/jupyter-widgets/ipywidgets/issues/2285
Here is the error from the chrome inspector:
Error displaying widget
vendors~main.97aacf046fa0e7539513.js:1081304 Module @jupyter-widgets/base, semver range ^1.2.0 is not registered as a widget module
Here are the versions of jupyterlab, ipywidgets and the manager extension:
(jupyter_shared) /work$ conda list -e | grep ipy
WARNING: The conda.compat module is deprecated and will be removed in a future release.
ipydatawidgets=4.0.0=py_0
ipykernel=5.1.1=py37h24bf2e0_0
ipyleaflet=0.11.0=py37_0
ipympl=0.2.1=py37_1002
ipyscales=0.3.0=py_0
ipython=7.6.0=py37h5ca1d4c_0
ipython_genutils=0.2.0=py_1
ipyvolume=0.5.1=py37_1001
ipywebrtc=0.4.3=py37_1000
ipywidgets=7.5.0=py_0
scipy=1.3.0=py37h921218d_0
(jupyter_shared) /work$ jupyter lab --version
0.35.4
(jupyter_shared) /work$ jupyter lab notebook --version
0.35.4
(jupyter_shared) /work$ jupyter labextension list
JupyterLab v0.35.4
Known labextensions:
app dir: /work/anaconda3/envs/jupyter_shared/share/jupyter/lab
@jupyter-widgets/jupyterlab-manager v0.38.1 enabled OK
@jupyter-widgets/jupyterlab-sidecar v0.3.0 enabled OK
...
Another thing I did was install the kernel-spy extension to take a view of the kernel messages and this came back in one of the JSON messages under iopub.content.traceback:
"KeyError Traceback (most recent call last)"
"/work/anaconda3/envs/jupyter_shared/lib/python3.7/site-packages/ipywidgets/widgets/widget.py in _handle_msg(self, msg)
"""Called when a msg is received from the front-end"""
data = msg['content']['data']
--> method = data['method']
"KeyError: 'method'
Please let me know if there is anything else I can put in this ticket to help solve this.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:7 (1 by maintainers)
Top GitHub Comments
Does anyone have any idea of the next highest combination of version numbers that works?
I’d like to take advantage of the latest jupyterlab/widget updates e.g. fileupload etc.
Can anyone raise @hainm’s excellent combination of
?
I am not sure if this’s helpful, but I have below recipe that works for a while (not sure about “now”)
I think the idea is to make very simple setup work first and then gradually adding more extensions until it breaks.