Dynamically update a plot in iPython notebook

Pandas

Using iPython's display function, we can dynamically refresh our plot

%matplotlib inline
import time
import pylab as pl
from IPython import display
for i in range(10):
pl.plot(pl.randn(100))
display.clear_output(wait=True)
display.display(pl.gcf())
time.sleep(1.0)

dynamic update plot loop ipython image 1