jupyter / jupyter/notebook

pdb throws an exception inside jupyter notebook

Open
#3,930 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Hi,
I am a regular user of jupyter notebook. I used **import pdb** package to debug my codes. This was working perfectly fine till some days. But now PDB throws an exception. I don't understand what is the actual issue. Please, kindly help me to resolve this. Below i have pasted the error code and also the snapshot of a simple code in jupyter notebook.
Thank you,

--Return--
> (10)()->None
-> pdb.set_trace()
(Pdb) n
> /home/srinidhi/anaconda3/envs/pytorch/lib/python3.6/site-packages/IPython/core/interactiveshell.py(2964)run_code()
-> sys.excepthook = old_excepthook
![errorfile](https://user-images.githubusercontent.com/16255955/45666504-6199dd80-bb33-11e8-9429-40720f9ac816.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported minimal example using import pdb and pdb.set_trace() in a Jupyter Notebook with the shown Python 3.6 environment, then capture the complete traceback beyond the pasted output. Trace the interaction around IPython's run_code() and sys.excepthook; done means stepping with pdb no longer raises the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.