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 vs TerminalPdb #12323

Open
edublancas opened this issue May 19, 2020 · 0 comments
Open

Pdb vs TerminalPdb #12323

edublancas opened this issue May 19, 2020 · 0 comments

Comments

@edublancas
Copy link

Hi,

I'm looking to integrate the IPython debugger with a library I'm developing.

I've been playing around with Pdb and TerminalPdb. Based on the documentaion, the difference is that TerminalPdb is a "standalone version that uses prompt_toolkit".

I took a look at the prompt_toolkit documentation and it is a tool geared towards CLI applications (which I think explains why TerminalPdb doesn't work in a Jupyter notebook):

AttributeError: 'ZMQInteractiveShell' object has no attribute 'editing_mode'

It seems that my best bet is to integrate with Pdb when my library is running on a Jupyter notebook and with TerminalPdb when running on a terminal, but I'm wondering whether there are any other differences.

Thanks!

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

1 participant