In [ ]:
from IPython.display import clear_output

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