使用 rmagic 扩展的 Ipython 笔记本崩溃

标签 ipython rpy2

我正在尝试运行 rmagic functions extension例如,但 ipython 崩溃并显示控制台错误消息 '\uused without hexdigits in string Started "c:\u"。我怀疑这是由 rmagic 传递 c:\path 而不是 c:\或 c:/引起的 R 错误消息。

可能有一个简单的方法可以解决这个问题(IPython 或 Notebook 启动参数?),但是,作为 rmagic 和 rpy2 的新手,我需要一些专家的帮助。

示例中的以下简单片段会导致内核死亡:

import rpy2
%load_ext rmagic
%R x=1 

我是 Windows 用户...

最佳答案

找到了此 ipython/windows 问题的解决方案 here

关于使用 rmagic 扩展的 Ipython 笔记本崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14691400/

相关文章:

python - 正在加载 rpy2 : ImportError: version `GOMP_4.0' not found

python - Rpy2 的操作限制是什么?

python - rpy2错误: "unrecognized escape in character string"

python - 如何在 ipython 控制台中定义类输出

python - 将python作为脚本运行时导入失败,但在iPython中没有?

python - rpy2 rmagic 用于 ipython 将数据帧列名称中的破折号转换为点

python - 我正在努力从 Python 实现 RTransferEntropy

python - 了解 numpy 数组的运行时?

Python通过python生成xml文件

python - IPython 选项卡仅完成部分模块