Created
March 19, 2009 04:18
-
-
Save certik/81584 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def fails(): | |
e = 1/0 | |
from IPython.kernel import client | |
mec = client.MultiEngineClient() | |
mec.reset() | |
ids = mec.get_ids() | |
mec.push_function({"f": fails}) | |
try: | |
print mec.execute("f()") | |
except: | |
t, v, tr = sys.exc_info() | |
print v | |
v.raise_exception() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment