from tqdm import tqdm as tqdm_cls
inst = tqdm_cls._instances
for i in range(len(inst)): inst.pop().close()
You know how if you have an exception during training then after that the progress bar in jupyter goes crazy and shows each update on a separate line, and it drives you totally crazy?
Well, after you have an exception, run the code above, and your sanity is restored!
(I’ll add this in to fastai to happen automatically soon, but I thought this was too great not to share in the meantime!)
Have you ever tried using the code in Jupyter Lab? It always shows each update on a separate line - at least it did last time I tried it a couple of months ago…