Closed Dabbrivia closed 2 years ago
I have tried to fix it using the suggestions https://github.com/jupyter-widgets/ipywidgets/issues/1720 but to no avail.
Hm, I have installed the virtual environment anew and now the same error appears for all kernels. So this seems unrelated to the radcad kernel. I will close this here.
So the culprit seems to be jupyter-book or some of it's dependencies. To reproduce
poetry new testenv
cd testenv
poetry shell
pip install cadCAD radcad cadCAD_tools jupyterlab
jupyter lab
the jupyter lab starts with no error message
pip install jupyter-book
jupyter lab
now this error appears:
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control
[IPKernelApp] WARNING | No such comm: e5c13e62-2a11-4dd5-aafb-979d90f9af26
Same problem appears when ipywidgets is installed.
jupyter-book is in the requirements list for the cadlabs project template so maybe this is indeed relevant.
Hey @Dabbrivia ! Thanks for detailing the issue here - I'm sure it will prove useful for anyone who has a similar issue. It doesn't seem specific to radCAD, but rather the dependencies and specific development environment as you pointed out.
@Dabbrivia @BenSchZA This isn't related to jupyter-book
it appears to be related to ipywidgets
. Unfortunately, someone added a report of this issue to a much older, unrelated issue here:
https://github.com/jupyter-widgets/ipywidgets/issues/2257
It looks like it got the attention of a maintainer, but there hasn't been any activity on that issue for a while after the request for more information. I've provided a step-by-step way to reproduce this error over there.
Closing this issue, thanks for the context above! It will remain in closed issues as a reference for future devs that run into it.
only when using the python3-radcad kernel the following error message appears in jupyter stderr:
if a vanilla kernel is chosen (ipykernel python3) this error does not appear.