Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdb throws an exception inside jupyter notebook #3930

Open
srinidhiPY opened this issue Sep 18, 2018 · 3 comments
Open

pdb throws an exception inside jupyter notebook #3930

srinidhiPY opened this issue Sep 18, 2018 · 3 comments

Comments

@srinidhiPY
Copy link

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

@cristianmtr
Copy link

Hey. I am also experiencing this. I have used pdb with success before in jupyter. Did you get anywhere with this?

@vipuljain11
Copy link

vipuljain11 commented Aug 9, 2019

was facing the same issue. But if warp it in function, it works. I don't know why bu here is the link

https://stackoverflow.com/questions/32529638/n-in-pdb-moves-me-inside-of-the-pdb-set-trace-method

@richjames0
Copy link

I also suffer from this. I'm aware of the workaround but it would be awesome if it weren't necessary :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants