Day087 — tqdm
1 min readJul 4, 2019
tqdm is a package that enables progress bar showing in the command line. It is really handy when you want to know the performance and progress of looping an array or dictionary.
I have used it like this:
desc
is used to describe the loop- tqdm prints progress in
sys.stderr
by default. I have changed it tosys.stdout
to avoid conflict with my other print() debug message.
You can manually update the progress bar. I use it when I have a nested loop.
reference: