[IPython-dev] Problem using JSAnimation

Fernando Perez fperez.net at gmail.com
Tue Jul 29 16:42:58 EDT 2014


Check your matplotlib version, it may be too old. I have 1.2.1 and those
APIs are there, otherwise you may need to update mpl.


On Tue, Jul 29, 2014 at 1:24 PM, Mike Witt <msg2mw at gmail.com> wrote:

> I've never used JSAnimation before. I just tried installing it,
> and every time I try to do anything with it, it wants to import
> things from matplotlib.animation that don't seem to be there (at
> least on my system). I wonder, is there some piece of matplolib
> that I'm missing?
>
> I should mention that I've never used matplotlib.animation either.
> In the past I've created the frames by hand and put them together
> with convert, ffmpeg, or something like that.
>
>
> In [1]: from JSAnimation import IPython_display
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call
> last)
> <ipython-input-1-8205f5806e96> in <module>()
> ----> 1 from JSAnimation import IPython_display
>
> /usr/local/lib/python2.7/dist-packages/JSAnimation/__init__.py in
> <module>()
> ----> 1 from .html_writer import HTMLWriter
>
> /usr/local/lib/python2.7/dist-packages/JSAnimation/html_writer.py in
> <module>()
>        8 else:
>        9     from io import BytesIO as InMemory
> ---> 10 from matplotlib.animation import writers, FileMovieWriter
>       11 from base64 import b64encode
>       12
>
> ImportError: cannot import name writers
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140729/28a8bf75/attachment.html>


More information about the IPython-dev mailing list