Jupyter中使用%matplotlib inline
设置matplotlib与Jupyter notebook集成。
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
plt.plot(np.random.randn(50).cumsum())
%matplotlib inline
设置matplotlib与Jupyter notebook集成。%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
plt.plot(np.random.randn(50).cumsum())