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())
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())