In [ ]:
from __future__ import print_function

from IPython.display import clear_output

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