I am using tqdm to print progress in a script I\'m running in a Jupyter notebook. I am printing all messages to the console via tqdm.write(). Howev
None of the above works for me. I find that running to following sorts this issue after error (It just clears all the instances of progress bars in the background):
from tqdm import tqdm
# blah blah your code errored
tqdm._instances.clear()
Use tqdm_notebook
from tqdm import tqdm_notebook as tqdm
x=[1,2,3,4,5]
for i in tqdm(range(0,len(x))):
print(x[i])