Answers for "tqdm 2 progress bars"

0

tqdm 2 progress bars

from tqdm import tqdm
# from tqdm.auto import tqdm  # notebook compatible
import time
for i1 in tqdm(range(5)):
    for i2 in tqdm(range(300), leave=False):
        # do something, e.g. sleep
        time.sleep(0.01)
Posted by: Guest on October-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language