File size: 225 Bytes
0163a2c |
1 2 3 4 5 6 7 8 9 |
from tqdm import tqdm
from time import sleep
progress_bar = tqdm(range(10), smoothing=0, desc="steps")
for i in range(10):
sleep(5)
progress_bar.update(1)
progress_bar.set_postfix({"log": f"sleeping 5 sec {i}"})
|