IR内核因全新安装Jupyter而死亡

问题描述 投票:2回答:2

这是我的硬件

:~/Downloads$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4

这是我的操作系统

uname -a
Linux   4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

这是我的Jupyter信息

Jupyter notebook.

The version of the notebook server is 4.2.1 and is running on:

Python 3.5.2 |Anaconda 4.1.1 (64-bit)| (default, Jul  2 2016, 17:53:06) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]

我使用https://www.continuum.io/blog/developer/jupyter-and-conda-r安装了R Essentials包

但是一旦我尝试制作新的R笔记本,IR内核就会死掉。有人使用Jupyter和R的解决方案吗?

错误消息

内核似乎已经死了。它会自动重启。

死核心

内核已经死亡,自动重启失败。内核无法重新启动。如果您无法重新启动内核,您仍然可以保存笔记本,但在重新打开笔记本之前,运行代码将不再有效。

我的问题是Python工作正常,但R版本死了。我如何在Jupyter中使用R.

python r jupyter jupyter-notebook
2个回答
3
投票

您的问题是版本兼容性问题。目前,IRkernel还没有升级到最IPython / Jupyter版本。如果您尝试在R或RStudio中安装de novo:

devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec(name = 'ir33', displayname = 'R 3.3')

或者你可以在R或RStudio中检查如下(相当于上面):

library(devtools)
install_github('IRkernel/IRkernel')
library(IRkernel)
installspec(name = 'ir33', displayname = 'R 3.3') ##update your R version according to check which version of R you have
 R.version.string

你会收到一条错误信息:

必须安装Jupyter或IPython 3.0,但既不能运行“jupyter”,也不能运行“ipython”,“ipython2”或“ipython3”。

这里最好的事情是等待开发人员的升级。希望他们能尽快解决这个问题。

如果你现在绝对需要解决问题,你应该安装IPython的历史版本并运行上面的命令:Link to IPython 3.x Series


0
投票

你在Jupyter之前安装了R吗?如果是这样,我面临同样的情况,并通过卸载并以指定的顺序重新安装来解决:

R is dead in Jupyter

© www.soinside.com 2019 - 2024. All rights reserved.