Ask Your Question

Revision history [back]

click to hide/show revision 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()