Monday, December 23, 2013

Matlab keyboard equivalent in python

I use the keyboard command all of the time in Matlab to get a live shell during an 
exception, etc.. so this is how you do it in python
import code
code.interact(local=locals())

No comments: