Within pdb
, I'm using the interact command to enter interactive mode (documentation).
This gives me an InteractiveConsole within pdb
(which I need in order to do list comprehension).
From within a Jupyter Notebook, how do I leave interactive mode without exiting the debugger entirely?
This question is the exact same question but the solutions only work from the terminal.
- ctrl+d from within Jupyter just adds a bookmark.
- And
quit()
returnsNameError: name 'quit' is not defined
I can do import sys; sys.exit()
, but that exits the debugger entirely, meaning I have to start from scratch.