Here is a special Christmas gift to you all:
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!)