qutip / qutip-notebooks

A collection of IPython notebooks using QuTiP: examples, tutorials, development test, etc.
BSD 3-Clause "New" or "Revised" License
238 stars 236 forks source link

ValueError: unknown file extension: .mp4 in bloch sphere animation notebook along with deprecation error. #124

Closed mjhajharia closed 2 years ago

mjhajharia commented 3 years ago

matplotlib.animation:MovieWriter avconv was unavailable and Pillow is being used instead, which does not support mp4 files, possibly making anim an FFMpegWriter object would help

ajgpitch commented 3 years ago

Thanks for raising this. Please refer to and link the Notebook that is causing the error.

ajgpitch commented 3 years ago

I think you will find that the error is caused by a usage error in https://github.com/qutip/qutip/blob/master/qutip/ipynbtools.py please do investigate further

mjhajharia commented 3 years ago

matplotlib.animation:MovieWriter avconv was unavailable and Pillow is being used instead, which does not support mp4 files, possibly making anim an FFMpegWriter object would help

The relevant notebook is https://github.com/qutip/qutip-notebooks/blob/master/examples/bloch-sphere-animation.ipynb