Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding _render_traceback_ for IPython #32

Open
jakirkham opened this issue Mar 31, 2018 · 2 comments
Open

Adding _render_traceback_ for IPython #32

jakirkham opened this issue Mar 31, 2018 · 2 comments

Comments

@jakirkham
Copy link

One neat idea that occurs to me is if the Traceback object implemented the _render_traceback_ method. All IPython seems to expect is a list of individual lines. This would allow custom rendering of Tracebacks in the IPython context.

@ionelmc
Copy link
Owner

ionelmc commented Apr 2, 2018 via email

@jakirkham
Copy link
Author

According to the docs, it is just a list of strs. Looking a little more closely, it appears to typically be the output of traceback.format_exception (at least that is true of ipyparallel). The method appears to be called when the exception is raised in the notebook.

@minrk, would know more about this than I.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants