Is there a python equivalent of the matlab command keyboard?
February 16, 2013 in Python, Recipes
Sort of. Wherever you want to stop the execution of your code to have access to the python prompt (and to the current local variables) just insert the lines:
import code code.interact(local=locals())
To resume the execution press Ctrl-D.

Recent Comments