from tqdm import tqdm - in library code or scripts from tqdm.notebook import tqdm - in notebooks from tqdm import tqdm for i in tqdm(range(10)): pass