A Javascript Viewer for Matplotlib Animations

This notebook was originally a post by Jake Vanderplas on Pythonic Perambulations The code here is BSD licensed: see http://github.com/jakevdp/JSAnimation.

I'll cut to the chase: here's what I've created: a javascript-based animation viewer, with hooks to embed it in IPython. It's best viewed in a modern browser (unfortunately Firefox does not currently qualify as "modern" due to its lack of HTML5 support)

In [1]:
%pylab inline
Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].
For more information, type 'help(pylab)'.
In [2]:
# get the JSAnimation import at https://github.com/jakevdp/JSAnimation
from JSAnimation import examples
examples.basic_animation()
Out[2]:


Once Loop Reflect