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
import time
for i in tqdm(range(10000)):
time.sleep(.1)
pass
So import tqdm
from tqdm.notebook
, not from tqdm
.
Looks better too, IMHO.