logo

... tqdm.


Tqdm (pronounced taqadum) means "progress" in arabic. It is also an abbreviation for "I love you so much" in Spanish (te quiero demasiado). The tool makes your python loops prettier and gives you a sign of life from your program. The documentation for it can be found here.


Notes

Nesting loops can be nesty business. Often this is sufficient;

import this
import tqdm 

for outer in tqdm.tqdm([10, 20, 30, 40, 50], desc=" outer", position=0):
    for inner in tqdm.tqdm(range(outer), desc=" inner loop", position=1, leave=False):
        time.sleep(0.05)
print("done!")

Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider getting the newsletter.