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

Using ipdb or pdb inside a source block #216

Open
jsigman opened this issue Jul 13, 2020 · 1 comment
Open

Using ipdb or pdb inside a source block #216

jsigman opened this issue Jul 13, 2020 · 1 comment

Comments

@jsigman
Copy link

jsigman commented Jul 13, 2020

Is it possible to use the debugger in a source block, in the same way that you can for jupyter?

I get the following error:

StdinNotImplementedError: raw_input was called, but this frontend does not support input requests.

When I use

        __import__("ipdb").set_trace()

In an org block with this header

#+begin_src ipython :session :exports both :results raw output drawer :async t

@aksarkar
Copy link

It is only possible to call into pdb in synchronous blocks (i.e., without :async t).

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

2 participants