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
Right now, trio has some code (in trio/_core/_multierror.py) to detect when it's running under IPython, and if so then it tries to register a special error printer for MultiError exceptions.
Currently, it's a bit lazy though: it just reuses our usual sys.excepthook printer, which gives something that looks like a normal python traceback, not the fancy-shiny traceback that IPython users are accustomed to. This isn't urgent, but at some point it would be good to rewrite this to use IPython's fancy exception printing machinery.
(There is also an annoying limitation in the current IPython exception printing hook API, which is that there can only be one hook installed at a time. Ideally we should be able to install our hook without colliding with anyone else who might also be trying to use this hook. But this will need changes to IPython upstream.)
I've been meaning to refactor extracting the tracebacks tools of IPython I can also try to pull it as a seprate package that does not depends on IPython. https://github.com/Qix-/better-exceptions might also be a thing to look at.
Right now, trio has some code (in
trio/_core/_multierror.py
) to detect when it's running under IPython, and if so then it tries to register a special error printer forMultiError
exceptions.Currently, it's a bit lazy though: it just reuses our usual
sys.excepthook
printer, which gives something that looks like a normal python traceback, not the fancy-shiny traceback that IPython users are accustomed to. This isn't urgent, but at some point it would be good to rewrite this to use IPython's fancy exception printing machinery.(There is also an annoying limitation in the current IPython exception printing hook API, which is that there can only be one hook installed at a time. Ideally we should be able to install our hook without colliding with anyone else who might also be trying to use this hook. But this will need changes to IPython upstream.)
CC: @Carreau
The text was updated successfully, but these errors were encountered: