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