我正在Ubuntu虚拟机上运行IPython笔记本。 到目前为止,一切都很好,只是我无法进行交互式matplotlib绘图。
我收到的错误是:
在与ThomasK交谈后,似乎我需要在iPython中运行
然而,交互性仅在最新版本的matplotlib(1.4.x)中可用,因此我需要从1.3.x升级。
在运行
有什么建议吗?
我收到的错误是:
TclError:没有显示名称和没有$DISPLAY环境变量
我只是想遵循这些超级基本的教程。
http://nbviewer.ipython.org/github/jakevdp/matplotlib_pydata2013/tree/master/notebooks/
任何提示吗?我做了一些研究,但似乎没有适用于在Ubuntu机器上运行iPython的内容。我知道我正在忽略一些明显的东西。在与ThomasK交谈后,似乎我需要在iPython中运行
%matplotlib nbaggs
跟随%matplotlib inline
以获得VM内的交互性。然而,交互性仅在最新版本的matplotlib(1.4.x)中可用,因此我需要从1.3.x升级。
在运行
sudo pip install matplotlib --upgrade
之后,我在我的.pip_log中收到了以下错误消息。有什么建议吗?
----------------------------------------
Cleaning up...
Removing temporary dir /tmp/pip_build_root...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/matplotlib
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/dist-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/matplotlib
请查看这里以获得更好的问题: 在运行nbagg与matplotlib交互的Linux虚拟机上运行的ipython笔记本
%matplotlib inline
或%pylab inline
可以让面向对象的matplots出现。然而,按钮只是一个png。我该如何使它们可点击? - user3659451