print update, rewrite python in console

 

..

print(f'iter:{i}/{total}',sep='',end="\r",flush=True)

..


Thank you.

jupyter print clear

 

Use Ipython.disply to make printed thing clear.

from IPython.display import clear_output

for i in range(10):
clear_output(wait=True)
print("Hello World!")


Thank you.

🙇🏻‍♂️