在升级 ipython 并尝试在 jupyter 中安装 R 内核后,我无法在 jupyter(ubuntu 15.04)上运行任何带有 python 2 内核(或 R 内核或 julia 内核)的笔记本。
Jupyter 是使用安装的sudo pip install -U jupyter[all]
我还注意到,如果我删除了使用 pip 安装的版本,我将无法使用存储库中的 ipython 版本。在这种情况下,我有:
$ ipython notebook
bash: /usr/local/bin/ipython: Aucun fichier ou dossier de ce type
jeanpat@jeanpat-WA50SHQ:~$ which ipython
/usr/bin/ipython
尝试按以下方式运行 ipython 无法解决:
$ /usr/bin/ipython notebook
2015-08-24 17:50:38.150 [NotebookApp] Using existing profile dir: u'/home/jeanpat/.ipython/profile_default'
2015-08-24 17:50:38.157 [NotebookApp] Using system MathJax
2015-08-24 17:50:38.170 [NotebookApp] Serving notebooks from local directory: /home/jeanpat
2015-08-24 17:50:38.170 [NotebookApp] 0 active kernels
2015-08-24 17:50:38.170 [NotebookApp] The IPython Notebook is running at: http://localhost:8888/
2015-08-24 17:50:38.170 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
(process:7153): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
2015-08-24 17:50:43.499 [NotebookApp] Creating new notebook in /
2015-08-24 17:50:44.319 [NotebookApp] Kernel started: d08486bf-5789-457f-93ec-d06a25def67e
2015-08-24 17:51:15.224 [NotebookApp] Kernel restarted: d08486bf-5789-457f-93ec-d06a25def67e
WARNING:tornado.access:404 GET /api/kernels/0a726dca-894a-4e7d-8b9c-7d62033632f1/channels?session_id=0DB4052BEBDC48048A7EEAE06B445FE0 (127.0.0.1) 20.41ms referer=None
那么如何才能回到理智的 ipython 2 笔记本环境(即使 R、julia、python3 不起作用)?谢谢你。