【发布时间】:2016-11-02 01:54:37
【问题描述】:
在 jupyter notebook 中,启用%matplotlib inline 后,打印文本和绘制图形的单元格的输出将在显示图形之前显示整个文本。即使在打印文本之前生成了图形(并调用了 show()),也会发生这种情况。
例如:
fig = plt.figure()
fig.add_subplot(111)
fig.show()
print "hello"
将在空图之前显示“你好”。
如何解决这个问题,让每个图都真正内联?
【问题讨论】:
标签: ipython jupyter jupyter-notebook