ipython / ipython/matplotlib-inline

Support animations

オープン
#61 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。