%matplotlib内联在jupyter笔记本上不显示任何图 [英] %matplotlib inline does not show any plot on jupyter notebook

查看:85
本文介绍了%matplotlib内联在jupyter笔记本上不显示任何图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

matplotlib.pyplot 需要很长时间才能运行,最终屏幕上没有显示任何绘图

matplotlib.pyplot takes a long time to run and finally no plot shows on the screen

但是 matplotlib.back_end()给出以下内容

u'TkAgg'

有人可以提出解决方案吗?

Can someone suggest a solution?

注意:我使用 pip install matplotlib

推荐答案

在Mac OSX 10.10.5上使用jupyter笔记本时,我遇到了类似的问题

I had a similar problem working with jupyter notebook on a Mac OSX 10.10.5

最后,我通过使用命令重新安装IPython和依赖项来修复了该问题

In the end I fixed it by reinstalling IPython and dependencies with the command

pip install -U --force-reinstall numpy matplotlib pyzmq jinja2 ipython

这篇关于%matplotlib内联在jupyter笔记本上不显示任何图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆