We tried the following code snippet. It works with try.jupyter.org:
%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())
pl.gcf().clear()
time.sleep(1.0)
where pl.gcf().clear() clears existing plots.
Documents for users' review: https://ipython.org/ipython-doc/3/api/generated/IPython.display.html