Help with widgets

I’m using a pretty much vanilla ArchLinux jupyterlab install. I’ve tried all kinds of messing about with configuration of packages but I can never get any widgets to show. The JupyterLab version is 3.4.4.

20220817_17h25m13s_grim

Would be grateful for any suggestions.

aplund,
Assuming everything is installed correctly, I have seen this happen if you installed ipywidgets while having the notebook kernel running.

Have you tried closing jupyterlab completely (not just the browser but the actual kernel), File → Shutdown. Then start it again and see if the issue persists?

1 Like

Thanks for the reply. Yeah, even a complete system reboot.

I’m not sure if this error is related, but I get it from the browser console each time I evaluate the IntSlider cell:

1 Like

I am also seeing these kinds of messages in the server logs:

Aug 19 12:13:44 sarek jupyter-lab[429775]: [IPKernelApp] WARNING | No such comm: dfb74802b62841bc8a0d90fa226fa430
Aug 19 12:13:44 sarek jupyter-lab[429775]: [IPKernelApp] WARNING | No such comm: 6c21153a04744d7889aa1db2cf053801
Aug 19 12:13:44 sarek jupyter-lab[429775]: [IPKernelApp] WARNING | No such comm: 059f1a9957b245bcafe3bccdd6e3bc69
Aug 19 12:13:44 sarek jupyter-lab[429775]: [IPKernelApp] WARNING | No such comm: f970adf714044f668d7b84247f2576c2
Aug 19 12:13:44 sarek jupyter-lab[429775]: [IPKernelApp] WARNING | No such comm: 0860166cdb85432d943e43298bb51709
Aug 19 12:13:44 sarek jupyter-lab[429775]: [IPKernelApp] WARNING | No such comm: 9d24d011f71044a8b2bc9a93321bc0cb
Aug 19 12:13:44 sarek jupyter-lab[429775]: [IPKernelApp] WARNING | No such comm: 9bf76f444bb147368f8112b38a9ba576

I would suggest that if you don’t hear from anyone with similar experience and a solution here, you might want to open a new issue in Issues · jupyterlab/jupyterlab · GitHub.

It might be unrelated, but there was a very recent release of ipywidgets 8 which might have caused some breakages. In particular, there might be a requirement to have a specific version of jupyterlab_widgets with a specific version of ipywidgets installed - we saw some problems on JuypterLab CI.

In any case when opening the issue the full information about the installed versions of all jupyter and widget-related packages will be crucial.

Thanks.

Just wanted to say, though, that I managed to get it all working by doing a fresh pip install into a virtualenv. I’ll see if I can figure out the difference between the archlinux packages and what’s in the pip installation.

2 Likes