from IPython import embed def f(): b=2 embed() # this stops execution and goes to the interpreter print 'oi' a=1 f()
Leave a comment: