A Christmas gift

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! :slight_smile:

(I’ll add this in to fastai to happen automatically soon, but I thought this was too great not to share in the meantime!)

52 Likes

This really is a gift. Thanks a lot @jeremy. This is really helpful while running long training processes.
Merry Christmas everyone!

Thanks a lot @jeremy and everything about this amazing course!
I wish everyone here a Merry Christmas!

BEST. GIFT. EVER.
Thanks Jeremy!

lol, I thought I was the only one that was annoyed by this. I would restart my kernel just to prevent this from happening.

Such a great gift! Thanks @jeremy!

Thanks Jeremy!

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…

This is automatically run by fastai now :slight_smile: Let me know if anyone sees the problem again.

6 Likes