Skip to content

Instantly share code, notes, and snippets.

@multun
Last active January 13, 2023 17:45
Show Gist options
  • Save multun/1c21ddc4ceb6cc5b6f17340f60bccb10 to your computer and use it in GitHub Desktop.
Save multun/1c21ddc4ceb6cc5b6f17340f60bccb10 to your computer and use it in GitHub Desktop.
Jupyter notebook / lab trickz
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