First time here? Check out the FAQ!
answered 5 years ago
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()