r/IPython • u/rsdenijs • Jan 18 '19
Is it possible to use Jupyter as a python debugging tool?
I have tried (and failed) a few times to achieve the following workflow:
Run an arbitrary python program from command line.
Hit a breakpoint in the code that starts a debugger.
Go to my jupyter notebook and attach to the debugging session in my python program.
Explore the variables, pretty-plot panda dataframes, display plots, etc, in Jupyter.
Lots of profit and productivity.
Does anyone know if something like this is possible?
0
Jan 18 '19
[deleted]
1
u/RemindMeBot Jan 18 '19
I will be messaging you on 2019-01-25 00:41:15 UTC to remind you of this link.
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
FAQs Custom Your Reminders Feedback Code Browser Extensions
1
u/mtszyk Jan 18 '19
Rather than
__import__('pdb').set_trace()give__import__('IPython').embed()a try.It just embeds an ipython -- I assume it will work with the notebook but I haven't tried it.