ipython / ipython/matplotlib-inline

Support animations

未關閉
#61 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。