pytutorial/TQDM
David Rotermund 5ddb9dadbb
Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
2023-12-05 11:20:57 +01:00
..
README.md Update README.md 2023-12-05 11:20:57 +01:00

TQDM -- Make your progress visible

{:.no_toc}

* TOC {:toc}

Goal

Introducing a nice progress bar for for loops.

Questions to David Rotermund

pip install tqdm

trange

You can just replace range by trange:

from tqdm import trange
import time

for i in trange(0, 10):
    time.sleep(1)
 30%|███       | 3/10 [00:03<00:07,  1.12s/it]

Beside trange, TQDM can be used for more elaborated setups.