在Coursera的一堂关于使用Matplotlib在Python中绘图的课程中,我学到了如何使用FuncAnimation对象来制作动画绘图。为什么这是必要的?最明显的技术是使用for循环来更新绘图并在每次迭代时暂停。这看起来容易多了。import matplotlib.pyplot as pltimport time
plt.plotget_child
在我的笔记本末尾,我想导出它的HTML版本。因此,我在notebook单元格中使用jupyter nbconvert命令行实用程序: !jupyter nbconvert '$nb_path' --output '$nfname' 其中,nb_path包含笔记本文件(.ipynb)的路径,nfname是以.html结尾的名称。在那里我得到了输出: "This application is used to convert.