0

I have a Jupyter Notebook where I can construct an matplotlib animation:

https://i.stack.imgur.com/5umN2.png

suppose you have created an animation and saved the notebook. Then, you can always run the animation, even when the kernel is down. Now my question is the following: Is there a way to extract the animation from the jupyter notebook and save it as mp4, without running any of the cells?

Binkie123
  • 1
  • 1
  • It depends a lot on what you are actually animating and maybe even how. There are ways though that get close to what you describe. Go [here](https://github.com/fomightez/animated_matplotlib-binder) and click `launch binder`. Then work own through everything below the separator line in the section that starts with, "There is also this resource below:". Which is essentially the last 5th of the notebook. I think making the mp4 is highlighted a few places. One of which I note is [here](https://stackoverflow.com/a/70764815/8508004) by uncommenting `anim.save('animation.mp4', fps=30)`. – Wayne May 18 '22 at 18:35

0 Answers0