tqdm.tqdm doc code example Example: tqdm in place from tqdm import tqdm for i in tqdm((foo_, range_ ), position=0, leave=True): pass