Ipython + Pylab/matplotlib Animations Hang
I cannot for the life of me get iPython to show an animated plot. This code is taken directly from the matplotlib animation examples, and it works fine using plain old python (aka
Solution 1:
The above - without uncommenting anythin works fine with just:
ipython animate.py
So does
ipython --pylab=auto
In [1]: import animate
So I think that your problem is that you are trying to combine interactive mode where the backend selection is important with a script that runs continuously with no interaction - this is a conflict.
Reading the documents here and here I suspect you need to make a call to IPython.lib.inputhook.InputHookManager
in animate.py
to set your backend.
IPython 0.13.2 matplotlib '1.3.0' kubuntu 13.10
Solution 2:
I too have been trying this. It seems the majority of users use JSAnimation from Jake Vanderplaas. Link. https://github.com/jakevdp/JSAnimation. This is not a package in the Enthought distribution, however, which then presents the need to import separately.
Post a Comment for "Ipython + Pylab/matplotlib Animations Hang"