python - Matplotlib animation + IPython: temporary disabling interactive mode? -


i have python script generates animation using matplotlib's animation.funcanimation , animation.ffmpegwriter. works well, there's issue when running code in ipython: each frame of animation displayed on screen while being generated, slows down movie generation process.

i've tried issuing plt.ioff() before running animation code, figure still displayed on screen. there way disable behavior in ipython?

on related note, if run script shell (i.e. python mymoviegenscript.py), 1 frame shown, blocking execution. can close , rest of frames rendered off screen (which want). there way prevent single frame displayed, no user interaction required?

as @tcaswell pointed out, problem caused callback indirectly calling plt.show().


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -