Last active
January 13, 2023 17:45
-
-
Save multun/1c21ddc4ceb6cc5b6f17340f60bccb10 to your computer and use it in GitHub Desktop.
Jupyter notebook / lab trickz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tqdm | |
import tqdm.notebook | |
tqdm.tqdm = tqdm.notebook.tqdm | |
from tqdm import tqdm | |
import pdb | |
def custom_exc(shell, etype, evalue, tb, tb_offset=None): | |
shell.showtraceback((etype, evalue, tb), tb_offset=tb_offset) | |
pdb.post_mortem(tb) | |
get_ipython().set_custom_exc((Exception,), custom_exc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment