How do I use a progress bar when my script is doing some task that is likely to take time?
For example, a function which takes some time to complete and returns
When running in jupyter notebooks use of normal tqdm doesn't work, as it writes output on multiple lines. Use this instead:
import time from tqdm import tqdm_notebook as tqdm for i in tqdm(range(100)) time.sleep(0.5)