ipython / ipython/matplotlib-inline
Support animations
未关闭
- 主要语言
- Jupyter Notebook
- 星标
- 31
- 派生
- 39
- PR 合并指标
- 30 天内没有已合并 PR
描述
To visualize animations in notebooks on
```python
from IPython.display import HTML
[...]
ani = matplotlib.animation.FuncAnimation(fig, animate, frames=FRAMES)
plt.close(fig) # prevent ipython from drawing the static figure
HTML(ani.to_jshtml())
```
It would be nice to adapt the logic so that if the return value of the last statement is an Animation, automatically turn that animation into HTML and display it, so that the user doesn't have to do all the above boilerplate and can just write
```python
matplotlib.animation.FuncAnimation(fig, animate, frames=FRAMES)
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。