我正在尝试运行 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/