ipython 中没有这样的通讯目标注册错误

sou*_*oor 10 python ipython python-3.x conda jupyter

当我在conda环境中启动python3笔记本时,我在终端中收到这样的错误:

[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
Run Code Online (Sandbox Code Playgroud)

但如果我启动 python2,这个错误就会消失。你知道我该如何处理这个问题吗?

Chi*_*enk -2

也许所有要求在您的 python2 e\xc5\x84 环境中都得到满足,但在您的 python3 环境中却无法满足。

\n\n

在我的系统上,我可以通过执行以下操作使错误消失

\n\n

conda install ipywidgets

\n\n

和

\n\n

conda install widgetsnbextension

\n\n

在非 Anaconda 发行版上,可能可以通过执行以下操作来实现相同的效果

\n\n

pip3 install ipywidgets

\n\n

和

\n\n

pip3 install widgetsnbextension

\n\n

您可能必须使用以下命令启用扩展

\n\n

jupyter nbextension enable --py widgetsnbextension

\n

  • 不适合我。 (4认同)
  • 也不适合我! (2认同)