Day087 — tqdm

Jacky Tsang
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:

  1. desc is used to describe the loop
  2. tqdm prints progress in sys.stderr by default. I have changed it to sys.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:

--

--

No responses yet