| 1 | initial version |
I assume that you are working in a Jupyter notebook. The following code may suit your needs:
from IPython.display import clear_output
print("Loading...")
sleep(5) # This emulates the function loading
print("Done")
sleep(2)
clear_output()
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.