proper animation in notebook?
Brian Blais <bblais <at> gmail.com>
2014-10-10 23:18:34 GMT
I have just found out how to do animations within an ipython notebook,
by looking at:
However, when I do it myself I get the animation, but I get a memory
leak - the memory of the python process just keeps growing. Here's my
import numpy as np
import matplotlib.pyplot as plt
from IPython.display import display, clear_output
for t in linspace(0,20,100):
somehow I think it isn't actually deleting the figures from one call
to another, so it is building up in the background, although I am not
sure. Is there a proper way to do this kind of animation in the
notebook without the memory continually increasing?
bblais <at> gmail.com