![](/img/trans.png)
[英]ipython notebook on linux VM running matplotlib interactive with nbagg
[英]Troubles after updating ipython (%matplotlib nbagg)
我安装了 anaconda 发行版,我通常运行ipython notebook --pylab inline
。 我使用pip install
(windows 8.1) 更新了ipython
并且我不再需要编写 --pylab inline 来启动
我开始在单元格中写入: %matplotlib nbagg
或matplotlib.use['nbagg']
,但是当我绘制某些内容时,它会显示这个空框:
我期待交互式绘图框。
ipython 日志显示:
[IPKernelApp] ERROR | No such comm: 7cfe982045bb4d0db0f14deff7258130
我猜这个问题是由太旧版本的matplotlib
引起的。 将%matplotlib nbagg
与ipython>=3.0
需要matplotlib>=1.4.3
(请注意, %matplotlib notebook
和%matplotlib nbagg
现在是同义词)。
通过pip install --upgrade matplotlib
更新 matplotlib 可能会解决这个问题。 另请参阅我在 github 上的issue-7797
。 感谢jenshnielsen提供此信息。
应该同时更新 matplotlib 和 ipython ...
sudo pip install -U ipython
sudo pip install -U matplotlib
在窗户上:
pip install --upgrade matplotlib
pip install --upgrade ipython
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.