You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks. It looks like IPython doesn't use sys.excepthook.
I think we'll have to test for IPython and, if the user is using it, override the showsyntaxerror and showtraceback methods of IPython.core.interactiveshell.InteractiveShell to have them invoke the custom handler.
Conveniently, this is precisely what we do for python's interactive interpreter in console.py; inconveniently code.InteractiveInterpreter is an old-style class in Python 2.7 so multiple inheritance may not be possible. I'll take a look and try to patch tonight or tomorrow.
The following piece of code
does work on the standard python interpreter (2.7.10) but no in ipython (4.0.0). The exit in ipython is obviously:
and nothing happens.
Some ideas?
The text was updated successfully, but these errors were encountered: