Edit: sorry, I was wrong, the example below doesn't work either. Let me investigate.
I don't know why this minimal example does not work, but what does work is the
tqdm.notebook version, which is meant for use in Jupyter notebooks:
from tqdm.notebook import tqdm
for i in tqdm(range(10000)):
tqdm.notebook, not from
Looks better too, IMHO.