Closed cheginit closed 4 years ago
@taataam Thanks for reporting this; I did see that something changed in matplotlib recently that broke our usual way of using ianimate
. You haven't included exactly what you did that threw this error. But if you want to use ianimate in a Jupyter notebook now you need to do something like
from IPython.display import HTML
anim = ianimate(claw)
HTML(anim.to_jshtml())
I will probably incorporate this inside the ianimate function when I have time.
@ketch I just ran make all
for a couple of example cases from a terminal. Thanks for the tip though, I'll give it a try.
Ah, looking at your traceback now I see that you weren't calling ianimate
at all. Still, I think this is the same bug, caused by a change in matplotlib. Leave this issue open; we need to fix it.
Yes, it looks like we need to update the way JS animations are created in plotpages.py
File "/home/taher/repositories/github/clawpack/visclaw/src/python/visclaw/plotpages.py", line 3079, in plotclaw_driver
anim.save(fname, writer=myHTMLwriter)
Great, thanks.
I have installed clawpack from git repo with matplotlib version 3 and python 3.7. When I try to run any example it fails at the animate step with the following error:
When I downgrade matplotlib to version 2.2.3 it works without any issue. So something has changed in version 3 which is not compatible with version 2.