jupyter lab matplotlib 画图

解决jupyter lab   plt.plot()  不画图的问题

import matplotlib.pyplot as plt
%matplotlib inline           #insert this code           
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()

加入 %matplotlib   这行代码  !

posted @ 2019-07-03 10:24  ZaneEli  阅读(1414)  评论(0编辑  收藏  举报