Can I add message to the tqdm progressbar?

The example shown in Usage of tqdm works well for me. pbar = tqdm([“a”, “b”, “c”, “d”]) for char in pbar: pbar.set_description(“Processing %s” % char) Or alternatively, starting Python 3.8 which supports the walrus operator :=: for char in (pbar := tqdm([“a”, “b”, “c”, “d”])): pbar.set_description(f”Processing {char}”)

tqdm in Jupyter Notebook prints new progress bars repeatedly

Try using tqdm.notebook.tqdm instead of tqdm, as outlined here. This could be as simple as changing your import to: from tqdm.notebook import tqdm Good luck! EDIT: After testing, it seems that tqdm actually works fine in ‘text mode’ in Jupyter notebook. It’s hard to tell because you haven’t provided a minimal example, but it looks … Read more