ob-ipython icon indicating copy to clipboard operation
ob-ipython copied to clipboard

Using ipdb or pdb inside a source block

Open jsigman opened this issue 5 years ago • 1 comments

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

jsigman avatar Jul 13 '20 14:07 jsigman

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

aksarkar avatar Apr 11 '22 16:04 aksarkar