kdlin1
April 10, 2022, 2:29am
1
I usually use the following command to start Jupyterlab:
jupyter lab --no-browser
After I start a browser, it immediately shows the following error and warning messages:
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control
[IPKernelApp] WARNING | No such comm: 8d87f402-5faa-45c8-933f-e3560ac90fb7
Can someone please suggest how I can debug the error and warning? Thanks.
I am running Ubuntu 20.04.4 LTS on Windows WSL2. Jupyterlab version is 3.3.3 and ipython version is 8.2.0.
1 Like
Cbhihe
April 22, 2022, 8:54am
2
Hello kdlin1, assuming you work in a Python environment, can you please run $ python -m pip freeze and give us the resulting packages, their versions and whether this is a virtual environment (if so tell us what environment).
If you not working with Python, just issue $ jupyter --version on the cmd-line and edit your original post with the output.
If you solved the issue, please provide an answer for the community
znmeb
April 29, 2022, 11:05pm
3
I can reproduce this on an NVIDIA Jetson (aarch64) - it’ll take me a couple of hours to trim things down to a minimal example. It doesn’t seem to be affecting the operation of my applications. Also, this environment is frozen at Python 3.6, so “get a newer Python” is not a solution.
Hi, sorry for the late response. I use conda to manage the packages. Will your command still work?
I run Python 3.8.13. The same problem is still there.
znmeb
May 2, 2022, 5:28am
6
It turns out this is an ipywidgets issue. It was fixed in 2017 but apparently some package constraint solvers still give a version that’s broken. See https://github.com/jupyter-widgets/ipywidgets/issues/1721 . There’s a workaround here: https://github.com/jupyter-widgets/ipywidgets/issues/1721#issuecomment-330759036
You run that in your activated conda environment after you’ve installed everything.
It is unclear to me what one needs to do to fix the issue you mentioned. Could you please elaborate a bit?
According to the following Github issues, this error and warning are harmless. The project maintainers are working on a change that will result in these messages not being generated in the first place. More information can be read here:
opened 08:26PM - 03 Nov 18 UTC
needs info
Hello all,
When i start jupyter i have the next msg
`[IPKernelApp] ERROR | N… o such comm target registered: jupyter.widget.version` and nothing happen when i try use ipywidgets in my jupyter-notebook
The step I've been doing from the starts when i creation my virtuelenv :
```
~ python3 -m virtualenv jupyter-notebook
~ pip3 install jupyter
~ jupyter nbextension enable --py --sys-prefix widgetsnbextension
Enabling notebook extension jupyter-js-widgets/extension...
- Validating: OK
```
`~ jupyter-notebook `
and i have thisin stdout
```
[I 20:49:51.447 NotebookApp] Serving notebooks from local directory: /home/iah
[I 20:49:51.447 NotebookApp] The Jupyter Notebook is running at:
[I 20:49:51.447 NotebookApp] http://localhost:8888/
[I 20:49:51.447 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 20:49:55.116 NotebookApp] 404 GET /api/kernels/5f273170-5379-4e1f-a1e1-7e1aad4dd924/channels?session_id=dbe4008897bc4d52901320704498afe5 (127.0.0.1): Kernel does not exist: 5f273170-5379-4e1f-a1e1-7e1aad4dd924
[W 20:49:55.154 NotebookApp] 404 GET /api/kernels/5f273170-5379-4e1f-a1e1-7e1aad4dd924/channels?session_id=dbe4008897bc4d52901320704498afe5 (127.0.0.1) 55.74ms referer=None
[I 20:50:05.445 NotebookApp] Kernel started: 112db463-d31d-4e35-98d9-0db3b00fb107
[I 20:50:06.062 NotebookApp] Adapting to protocol v5.1 for kernel 112db463-d31d-4e35-98d9-0db3b00fb107
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.version
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.version
```
and what i have in my virtualenv
```
~ pip freeze
backcall==0.1.0
bleach==3.0.2
decorator==4.3.0
defusedxml==0.5.0
entrypoints==0.2.3
ipykernel==5.1.0
ipython==7.1.1
ipython-genutils==0.2.0
ipywidgets==7.4.2
jedi==0.13.1
Jinja2==2.10
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.3
jupyter-console==6.0.0
jupyter-core==4.4.0
MarkupSafe==1.0
mistune==0.8.4
nbconvert==5.4.0
nbformat==4.4.0
notebook==5.7.0
pandocfilters==1.4.2
parso==0.3.1
pexpect==4.6.0
pickleshare==0.7.5
prometheus-client==0.4.2
prompt-toolkit==2.0.7
ptyprocess==0.6.0
Pygments==2.2.0
python-dateutil==2.7.5
pyzmq==17.1.2
qtconsole==4.4.2
Send2Trash==1.5.0
six==1.11.0
terminado==0.8.1
testpath==0.4.2
tornado==5.1.1
traitlets==4.3.2
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.4.2
```
And here:
opened 12:10PM - 07 May 22 UTC
## Description
When new kernel session is instantiated(new notebook) JLab log… s:
`[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control`
`[IPKernelApp] WARNING | No such comm: ded5178f-d06f-422a-851f-d7a4b564debb`
Below is the context I just tried, but I tried with a lot of different versions combinations.
## Reproduce
1. clean env creation: `conda create -n ipywidgets_problem jupyterlab ipywidgets -y`
2. activate env: `conda activate ipywidgets_problem`
3. run JLab: `jupyter lab`
## Context
- ipywidgets version: 7.7.0
- JLab version: 3.4.0
- Operating System and version: Linux Ubuntu 20
- Browser and version: any, tried on Firefox, Brave, Safari
<details><summary>Troubleshoot Output</summary>
<pre>
$PATH:
/home/luka/miniconda3/envs/ipywidgets_problem/bin
/home/luka/miniconda3/condabin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin
sys.path:
/home/luka/miniconda3/envs/ipywidgets_problem/bin
/home/luka/miniconda3/envs/ipywidgets_problem/lib/python310.zip
/home/luka/miniconda3/envs/ipywidgets_problem/lib/python3.10
/home/luka/miniconda3/envs/ipywidgets_problem/lib/python3.10/lib-dynload
/home/luka/miniconda3/envs/ipywidgets_problem/lib/python3.10/site-packages
sys.executable:
/home/luka/miniconda3/envs/ipywidgets_problem/bin/python
sys.version:
3.10.4 | packaged by conda-forge | (main, Mar 24 2022, 17:39:04) [GCC 10.3.0]
platform.platform():
Linux-5.11.22-4-pve-x86_64-with-glibc2.31
which -a jupyter:
/home/luka/miniconda3/envs/ipywidgets_problem/bin/jupyter
pip list:
Package Version
-------------------- ---------
anyio 3.5.0
argon2-cffi 21.3.0
argon2-cffi-bindings 21.2.0
asttokens 2.0.5
attrs 21.4.0
Babel 2.10.1
backcall 0.2.0
beautifulsoup4 4.11.1
bleach 5.0.0
brotlipy 0.7.0
certifi 2021.10.8
cffi 1.15.0
charset-normalizer 2.0.12
cryptography 36.0.0
debugpy 1.6.0
decorator 5.1.1
defusedxml 0.7.1
entrypoints 0.4
executing 0.8.3
fastjsonschema 2.15.3
idna 3.3
importlib-metadata 4.11.3
importlib-resources 5.7.1
ipykernel 6.13.0
ipython 8.3.0
ipython-genutils 0.2.0
ipywidgets 7.7.0
jedi 0.18.1
Jinja2 3.1.2
json5 0.9.6
jsonschema 4.5.1
jupyter-client 7.3.0
jupyter-core 4.10.0
jupyter-server 1.17.0
jupyterlab 3.4.0
jupyterlab-pygments 0.2.2
jupyterlab-server 2.13.0
jupyterlab-widgets 1.1.0
MarkupSafe 2.1.1
matplotlib-inline 0.1.3
mistune 0.8.4
nbclassic 0.3.7
nbclient 0.6.2
nbconvert 6.5.0
nbformat 5.4.0
nest-asyncio 1.5.5
notebook 6.4.11
notebook-shim 0.1.0
packaging 21.3
pandocfilters 1.5.0
parso 0.8.3
pexpect 4.8.0
pickleshare 0.7.5
pip 22.0.4
prometheus-client 0.14.1
prompt-toolkit 3.0.29
psutil 5.9.0
ptyprocess 0.7.0
pure-eval 0.2.2
pycparser 2.21
Pygments 2.12.0
pyOpenSSL 22.0.0
pyparsing 3.0.8
pyrsistent 0.18.1
PySocks 1.7.1
python-dateutil 2.8.2
pytz 2022.1
pyzmq 22.3.0
requests 2.27.1
Send2Trash 1.8.0
setuptools 62.1.0
six 1.16.0
sniffio 1.2.0
soupsieve 2.3.1
stack-data 0.2.0
terminado 0.13.3
tinycss2 1.1.1
tornado 6.1
traitlets 5.1.1
typing_extensions 4.2.0
urllib3 1.26.9
wcwidth 0.2.5
webencodings 0.5.1
websocket-client 1.3.2
wheel 0.37.1
widgetsnbextension 3.6.0
zipp 3.8.0
conda list:
# packages in environment at /home/luka/miniconda3/envs/ipywidgets_problem:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
anyio 3.5.0 py310h06a4308_0
argon2-cffi 21.3.0 pyhd3eb1b0_0
argon2-cffi-bindings 21.2.0 py310h7f8727e_0
asttokens 2.0.5 pyhd3eb1b0_0
attrs 21.4.0 pyhd3eb1b0_0
babel 2.10.1 pyhd8ed1ab_0 conda-forge
backcall 0.2.0 pyhd3eb1b0_0
beautifulsoup4 4.11.1 py310h06a4308_0
bleach 5.0.0 pyhd8ed1ab_0 conda-forge
brotlipy 0.7.0 py310h7f8727e_1002
bzip2 1.0.8 h7b6447c_0
ca-certificates 2022.4.26 h06a4308_0
certifi 2021.10.8 py310hff52083_2 conda-forge
cffi 1.15.0 py310hd667e15_1
charset-normalizer 2.0.12 pyhd8ed1ab_0 conda-forge
cryptography 36.0.0 py310h9ce1e76_0
debugpy 1.6.0 py310hd8f1fbe_0 conda-forge
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
entrypoints 0.4 py310h06a4308_0
executing 0.8.3 pyhd3eb1b0_0
idna 3.3 pyhd3eb1b0_0
importlib-metadata 4.11.3 py310h06a4308_0
importlib_metadata 4.11.3 hd3eb1b0_0
importlib_resources 5.7.1 pyhd8ed1ab_0 conda-forge
ipykernel 6.13.0 py310hfdc917e_0 conda-forge
ipython 8.3.0 py310h06a4308_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 7.7.0 pyhd8ed1ab_0 conda-forge
jedi 0.18.1 py310h06a4308_1
jinja2 3.1.2 pyhd8ed1ab_0 conda-forge
json5 0.9.6 pyhd3eb1b0_0
jsonschema 4.5.1 pyhd8ed1ab_0 conda-forge
jupyter_client 7.3.0 pyhd8ed1ab_0 conda-forge
jupyter_core 4.10.0 py310h06a4308_0
jupyter_server 1.17.0 pyhd8ed1ab_0 conda-forge
jupyterlab 3.4.0 pyhd8ed1ab_0 conda-forge
jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge
jupyterlab_server 2.13.0 pyhd8ed1ab_1 conda-forge
jupyterlab_widgets 1.1.0 pyhd8ed1ab_0 conda-forge
ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge
libffi 3.4.2 h295c915_2
libgcc-ng 11.2.0 h1d223b6_16 conda-forge
libgomp 11.2.0 h1d223b6_16 conda-forge
libnsl 2.0.0 h7f98852_0 conda-forge
libsodium 1.0.18 h7b6447c_0
libstdcxx-ng 11.2.0 he4da1e4_16 conda-forge
libuuid 2.32.1 h7f98852_1000 conda-forge
libzlib 1.2.11 h166bdaf_1014 conda-forge
markupsafe 2.1.1 py310h5764c6d_1 conda-forge
matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge
mistune 0.8.4 py310h7f8727e_1000
nbclassic 0.3.7 pyhd8ed1ab_0 conda-forge
nbclient 0.6.2 pyhd8ed1ab_0 conda-forge
nbconvert 6.5.0 pyhd8ed1ab_0 conda-forge
nbconvert-core 6.5.0 pyhd8ed1ab_0 conda-forge
nbconvert-pandoc 6.5.0 pyhd8ed1ab_0 conda-forge
nbformat 5.4.0 pyhd8ed1ab_0 conda-forge
ncurses 6.3 h7f8727e_2
nest-asyncio 1.5.5 py310h06a4308_0
notebook 6.4.11 py310h06a4308_0
notebook-shim 0.1.0 pyhd8ed1ab_0 conda-forge
openssl 3.0.3 h166bdaf_0 conda-forge
packaging 21.3 pyhd3eb1b0_0
pandoc 2.18 ha770c72_0 conda-forge
pandocfilters 1.5.0 pyhd3eb1b0_0
parso 0.8.3 pyhd3eb1b0_0
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 pyhd3eb1b0_1003
pip 22.0.4 pyhd8ed1ab_0 conda-forge
prometheus_client 0.14.1 pyhd8ed1ab_0 conda-forge
prompt-toolkit 3.0.29 pyha770c72_0 conda-forge
psutil 5.9.0 py310h5764c6d_1 conda-forge
ptyprocess 0.7.0 pyhd3eb1b0_2
pure_eval 0.2.2 pyhd3eb1b0_0
pycparser 2.21 pyhd3eb1b0_0
pygments 2.12.0 pyhd8ed1ab_0 conda-forge
pyopenssl 22.0.0 pyhd3eb1b0_0
pyparsing 3.0.8 pyhd8ed1ab_0 conda-forge
pyrsistent 0.18.1 py310h5764c6d_1 conda-forge
pysocks 1.7.1 py310h06a4308_0
python 3.10.4 h2660328_0_cpython conda-forge
python-dateutil 2.8.2 pyhd3eb1b0_0
python-fastjsonschema 2.15.3 pyhd8ed1ab_0 conda-forge
python_abi 3.10 2_cp310 conda-forge
pytz 2022.1 pyhd8ed1ab_0 conda-forge
pyzmq 22.3.0 py310h295c915_2
readline 8.1.2 h7f8727e_1
requests 2.27.1 pyhd3eb1b0_0
send2trash 1.8.0 pyhd3eb1b0_1
setuptools 62.1.0 py310hff52083_0 conda-forge
six 1.16.0 pyhd3eb1b0_1
sniffio 1.2.0 py310h06a4308_1
soupsieve 2.3.1 pyhd3eb1b0_0
sqlite 3.38.5 h4ff8645_0 conda-forge
stack_data 0.2.0 pyhd3eb1b0_0
terminado 0.13.3 py310hff52083_1 conda-forge
tinycss2 1.1.1 pyhd8ed1ab_0 conda-forge
tk 8.6.12 h27826a3_0 conda-forge
tornado 6.1 py310h7f8727e_0
traitlets 5.1.1 pyhd3eb1b0_0
typing-extensions 4.2.0 hd8ed1ab_1 conda-forge
typing_extensions 4.2.0 pyha770c72_1 conda-forge
tzdata 2022a hda174b7_0
urllib3 1.26.9 py310h06a4308_0
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py310h06a4308_1
websocket-client 1.3.2 pyhd8ed1ab_0 conda-forge
wheel 0.37.1 pyhd3eb1b0_0
widgetsnbextension 3.6.0 py310hff52083_0 conda-forge
xz 5.2.5 h7f8727e_1
zeromq 4.3.4 h2531618_0
zipp 3.8.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.11 h166bdaf_1014 conda-forge
conda env:
name: ipywidgets_problem
channels:
- defaults
- conda-forge
dependencies:
- _libgcc_mutex=0.1=conda_forge
- _openmp_mutex=4.5=2_gnu
- anyio=3.5.0=py310h06a4308_0
- argon2-cffi=21.3.0=pyhd3eb1b0_0
- argon2-cffi-bindings=21.2.0=py310h7f8727e_0
- asttokens=2.0.5=pyhd3eb1b0_0
- attrs=21.4.0=pyhd3eb1b0_0
- babel=2.10.1=pyhd8ed1ab_0
- backcall=0.2.0=pyhd3eb1b0_0
- beautifulsoup4=4.11.1=py310h06a4308_0
- bleach=5.0.0=pyhd8ed1ab_0
- brotlipy=0.7.0=py310h7f8727e_1002
- bzip2=1.0.8=h7b6447c_0
- ca-certificates=2022.4.26=h06a4308_0
- certifi=2021.10.8=py310hff52083_2
- cffi=1.15.0=py310hd667e15_1
- charset-normalizer=2.0.12=pyhd8ed1ab_0
- cryptography=36.0.0=py310h9ce1e76_0
- debugpy=1.6.0=py310hd8f1fbe_0
- decorator=5.1.1=pyhd3eb1b0_0
- defusedxml=0.7.1=pyhd3eb1b0_0
- entrypoints=0.4=py310h06a4308_0
- executing=0.8.3=pyhd3eb1b0_0
- idna=3.3=pyhd3eb1b0_0
- importlib-metadata=4.11.3=py310h06a4308_0
- importlib_metadata=4.11.3=hd3eb1b0_0
- importlib_resources=5.7.1=pyhd8ed1ab_0
- ipykernel=6.13.0=py310hfdc917e_0
- ipython=8.3.0=py310h06a4308_0
- ipython_genutils=0.2.0=pyhd3eb1b0_1
- ipywidgets=7.7.0=pyhd8ed1ab_0
- jedi=0.18.1=py310h06a4308_1
- jinja2=3.1.2=pyhd8ed1ab_0
- json5=0.9.6=pyhd3eb1b0_0
- jsonschema=4.5.1=pyhd8ed1ab_0
- jupyter_client=7.3.0=pyhd8ed1ab_0
- jupyter_core=4.10.0=py310h06a4308_0
- jupyter_server=1.17.0=pyhd8ed1ab_0
- jupyterlab=3.4.0=pyhd8ed1ab_0
- jupyterlab_pygments=0.2.2=pyhd8ed1ab_0
- jupyterlab_server=2.13.0=pyhd8ed1ab_1
- jupyterlab_widgets=1.1.0=pyhd8ed1ab_0
- ld_impl_linux-64=2.36.1=hea4e1c9_2
- libffi=3.4.2=h295c915_2
- libgcc-ng=11.2.0=h1d223b6_16
- libgomp=11.2.0=h1d223b6_16
- libnsl=2.0.0=h7f98852_0
- libsodium=1.0.18=h7b6447c_0
- libstdcxx-ng=11.2.0=he4da1e4_16
- libuuid=2.32.1=h7f98852_1000
- libzlib=1.2.11=h166bdaf_1014
- markupsafe=2.1.1=py310h5764c6d_1
- matplotlib-inline=0.1.3=pyhd8ed1ab_0
- mistune=0.8.4=py310h7f8727e_1000
- nbclassic=0.3.7=pyhd8ed1ab_0
- nbclient=0.6.2=pyhd8ed1ab_0
- nbconvert=6.5.0=pyhd8ed1ab_0
- nbconvert-core=6.5.0=pyhd8ed1ab_0
- nbconvert-pandoc=6.5.0=pyhd8ed1ab_0
- nbformat=5.4.0=pyhd8ed1ab_0
- ncurses=6.3=h7f8727e_2
- nest-asyncio=1.5.5=py310h06a4308_0
- notebook=6.4.11=py310h06a4308_0
- notebook-shim=0.1.0=pyhd8ed1ab_0
- openssl=3.0.3=h166bdaf_0
- packaging=21.3=pyhd3eb1b0_0
- pandoc=2.18=ha770c72_0
- pandocfilters=1.5.0=pyhd3eb1b0_0
- parso=0.8.3=pyhd3eb1b0_0
- pexpect=4.8.0=pyhd3eb1b0_3
- pickleshare=0.7.5=pyhd3eb1b0_1003
- pip=22.0.4=pyhd8ed1ab_0
- prometheus_client=0.14.1=pyhd8ed1ab_0
- prompt-toolkit=3.0.29=pyha770c72_0
- psutil=5.9.0=py310h5764c6d_1
- ptyprocess=0.7.0=pyhd3eb1b0_2
- pure_eval=0.2.2=pyhd3eb1b0_0
- pycparser=2.21=pyhd3eb1b0_0
- pygments=2.12.0=pyhd8ed1ab_0
- pyopenssl=22.0.0=pyhd3eb1b0_0
- pyparsing=3.0.8=pyhd8ed1ab_0
- pyrsistent=0.18.1=py310h5764c6d_1
- pysocks=1.7.1=py310h06a4308_0
- python=3.10.4=h2660328_0_cpython
- python-dateutil=2.8.2=pyhd3eb1b0_0
- python-fastjsonschema=2.15.3=pyhd8ed1ab_0
- python_abi=3.10=2_cp310
- pytz=2022.1=pyhd8ed1ab_0
- pyzmq=22.3.0=py310h295c915_2
- readline=8.1.2=h7f8727e_1
- requests=2.27.1=pyhd3eb1b0_0
- send2trash=1.8.0=pyhd3eb1b0_1
- setuptools=62.1.0=py310hff52083_0
- six=1.16.0=pyhd3eb1b0_1
- sniffio=1.2.0=py310h06a4308_1
- soupsieve=2.3.1=pyhd3eb1b0_0
- sqlite=3.38.5=h4ff8645_0
- stack_data=0.2.0=pyhd3eb1b0_0
- terminado=0.13.3=py310hff52083_1
- tinycss2=1.1.1=pyhd8ed1ab_0
- tk=8.6.12=h27826a3_0
- tornado=6.1=py310h7f8727e_0
- traitlets=5.1.1=pyhd3eb1b0_0
- typing-extensions=4.2.0=hd8ed1ab_1
- typing_extensions=4.2.0=pyha770c72_1
- tzdata=2022a=hda174b7_0
- urllib3=1.26.9=py310h06a4308_0
- wcwidth=0.2.5=pyhd3eb1b0_0
- webencodings=0.5.1=py310h06a4308_1
- websocket-client=1.3.2=pyhd8ed1ab_0
- wheel=0.37.1=pyhd3eb1b0_0
- widgetsnbextension=3.6.0=py310hff52083_0
- xz=5.2.5=h7f8727e_1
- zeromq=4.3.4=h2531618_0
- zipp=3.8.0=pyhd8ed1ab_0
- zlib=1.2.11=h166bdaf_1014
prefix: /home/luka/miniconda3/envs/ipywidgets_problem
</pre>
</details>
<details><summary>Installed Labextensions</summary>
<pre>
JupyterLab v3.4.0
/home/luka/miniconda3/envs/ipywidgets_problem/share/jupyter/labextensions
jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
@jupyter-widgets/jupyterlab-manager v3.1.0 enabled OK (python, jupyterlab_widgets)
</pre>
</details>
2 Likes