在 ipython notebook 中如何启用在线绘图功能
如果没有启用绘图功能时,在ipython notebook中调用 plot函数或者调用 matplotlib.pyplot.show() 会报如下错误:
RuntimeError: Invalid DISPLAY variable
这个时候需要在新版本的 jupyter中需要输入 %pylab inline启动在线绘图功能。
如果没有启用绘图功能时,在ipython notebook中调用 plot函数或者调用 matplotlib.pyplot.show() 会报如下错误:
RuntimeError: Invalid DISPLAY variable
这个时候需要在新版本的 jupyter中需要输入 %pylab inline启动在线绘图功能。