[IPython-User] modify a running script (MinRK)
Sat Sep 24 08:25:30 CDT 2011
The following script:
def signal_handler(signal, frame):
print 'you can embed some logic here when user pressed Ctrl+C!'
IPython.embed() # assign a=0 in here
print 'Press Ctrl+C'
a = 1
print 'out of loop'
doesn't make it out of the loop even if the value of 'a' has been changed
from inside the embedded IPython call. I don't understand where the
signal is being
captured in the code and where it resumes from.
More information about the IPython-User