Jupyter(IPython)笔记本没有密谋

时间:2015-07-24 11:38:12

标签: python pandas ipython

我安装了anaconda来使用pandas和scipy。我阅读和观看pandas教程,他们都说使用

打开ipython笔记本
 ipython notebook --pylab==inline

但是当我这样做时,我收到一条消息说

"Support for specifying --pylab on the command line has been removed. Please use '%pylab = inline' or '%matplotlib =inline' in the notebook itself"

但这不起作用。然后,当我尝试"绘图(arange(10))"我收到一条消息说" name' plot'没有定义。"我正在尝试从.csv文件中绘制数据并获得

"matplotlib.axes._subplots.AxesSubplot at 0xebf8b70".

我该怎么办?

1 个答案:

答案 0 :(得分:119)

我相信当他们从IPython转换到更普通的Jupyter笔记本时,pylab魔法就被删除了。

尝试:

%matplotlib inline

此外,当您收到如下消息时:

"matplotlib.axes._subplots.AxesSubplot at 0xebf8b70".

这只是显示对象的IPython。你需要指定IPython显示它。因此matplotlib内联魔术。

相关问题