[IPython-dev] Continuing from an exeption

Gael Varoquaux gael.varoquaux at normalesup.org
Thu Sep 20 16:21:24 EDT 2007

OK, this is a stupid question ,the answer is probably somewhere in the
manual, and the question should be asked on the user mailing list. But...

How can I continue running a script after it bailed out because of an
exception ?

For instance I have

b = do_long_calculation()
print a
a = other_long_calculation(b)

This will fail because a does not exist. I can "%debug" to go in debug
mode and find that out. I could correct the problem by defining a, and
then continue the script, or I could just decide to skip the line and
continue the script. 

Is there a way to do this ?



More information about the IPython-dev mailing list