There is no such command registered in ipython

When I run a python3 laptop in a conda environment, I got this error in the terminal:

[I 21:59:46.185 NotebookApp] Creating new notebook in /Untitled Folder
[I 21:59:47.071 NotebookApp] Kernel started: a8c53aaf-8282-479d-b3ec-afb9433c30e6
[IPKernelApp] ERROR | No such comm target registered: ipython.widget

But if I run python2, this error will disappear. Do you know how I can deal with this problem?

+4
source share
1 answer

Perhaps all requirements are met in your python2 environment, but not in your python3 environment.

On my system, I can make a mistake by disappearing by doing

conda install ipywidgets

and

conda install widgetsnbextension

In a distribution other than Anaconda, perhaps the same can be achieved by doing

pip3 install ipywidgets

and

pip3 install widgetsnbextension

You may need to enable the extension using

jupyter nbextension enable --py widgetsnbextension

0
source

Source: https://habr.com/ru/post/1667261/


All Articles