Ipython notebook crash using rmagic extension

别等时光非礼了梦想. 提交于 2019-12-04 15:12:53

Found a solution to this ipython/windows problem here

I am a Windows user. I went to my IPython extention folder which for me is: C:\Python27\Lib\site-packages\IPython\extensions and opened rmagic.py for editing. Found the line

self.r('png("%s/Rplots%%03d.png",%s)' % (tmpd, png_args))

and replaced it with the line:

self.r('png("%s/Rplots%%03d.png",%s, type="cairo")' % (tmpd.replace('\\', '/'), png_args))

The reason you do this is described here and here

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!