In [1]:
from IPython.display import clear_output

In [2]:
for i in range(10):
    clear_output()
    print i


9