ipython / ipython/matplotlib-inline

Support animations

Ouverte
#61 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Jupyter Notebook
Étoiles
31
Forks
39
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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)
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.