Wednesday, June 1, 2016

Matlab's keyboard command, but for IPython

Add the following to the preamble.
from IPython.core.debugger import Tracer; debug_here = Tracer()
Then in code, you can call "debug_here()" where you'd use "keyboard" in Matlab.