Can';t添加1+;1英寸ipython笔记本电脑
由于ipython的一些更新以及在jupyter中安装R的努力,我甚至无法添加1和1:Can';t添加1+;1英寸ipython笔记本电脑,ipython,ipython-notebook,jupyter,Ipython,Ipython Notebook,Jupyter,由于ipython的一些更新以及在jupyter中安装R的努力,我甚至无法添加1和1: 1+1在python笔记本(jupyter)中不会产生任何输出 启动笔记本电脑的控制台表明IPKernel应用程序存在一些问题 $ jupyter notebook [I 16:15:44.792 NotebookApp] Serving notebooks from local directory: /home/jeanpat [I 16:15:44.792 NotebookApp] 0 active ke
1+1
在python笔记本(jupyter)中不会产生任何输出
启动笔记本电脑的控制台表明IPKernel应用程序存在一些问题
$ jupyter notebook
[I 16:15:44.792 NotebookApp] Serving notebooks from local directory: /home/jeanpat
[I 16:15:44.792 NotebookApp] 0 active kernels
[I 16:15:44.792 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 16:15:44.792 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
(process:11705): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
[I 16:15:50.325 NotebookApp] Kernel started: 50c937a7-9ab6-456f-8e65-6d7de55301a6
[IPKernelApp] ERROR | No such comm target registered: ipython.widget
[I 16:17:50.327 NotebookApp] Saving file at /Untitled.ipynb
但是,如果在ipython控制台中执行,则1+1产生2:
~$ ipython
Python 2.7.9 (default, Apr 2 2015, 15:33:21)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: 1+1
Out[1]: 2
删除
~/.local/share/jupyter
修复了该问题。在调试模式下运行(jupyter notebook--debug)显示了jupyter寻找内核的位置Jean Pat 2小时前你有所有东西的4.0版吗?Imho comm target应该只是一个警告,因为widget是可选的。我已经用sudo-pip-install-U-ipython[all]和sudo-pip-install-jupyter安装了ipython,所以我想没有这样的com是不重要的,我检查过了。浏览器的JS控制台中有错误吗?没有错误:“内核就绪”这很奇怪。在GitHub上的jupyter/notebook上打开一个问题,我们可以在那里调试,这样会更容易。指向这里,以便稍后我们可以更新答案。