Skip to content

Instantly share code, notes, and snippets.

@certik
Created March 19, 2009 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save certik/81584 to your computer and use it in GitHub Desktop.
Save certik/81584 to your computer and use it in GitHub Desktop.
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