使用ipython 解释器
绘图
from numpy
import array a = array([1, 2, 3, 4])
a
%matplotlib inline
from matplotlib.pyplot
import plot plot(a, a**2)
错误
Shell is already running a gui event loop for osx. Call with no arguments to disable the current loop. Out[3]: [<matplotlib.lines.Line2D at 0x1105ec820>]
替换
%matplotlib inline
->
%matplotlib
%matplotlib
from matplotlib.pyplot
import plot plot(a, a**2)