-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Better traceback. #1247
Comments
We had talked about adding a new message type for errors with a mimebundle (the present error message only has a text traceback). Thinking about it more, I'm not sure we need a new message type: maybe messages should just display with |
I don't recall a proposal for a new message type. My understanding of the plan was to extend the existing |
Oh, that may have been it. A backward-compatible change to the message spec, anyway. If we do want to use a mimebundle (which I think is a simple enough extension), I think it's worth considering just doing that with the existing |
There is a reason to add it to the same message in that I think it would make it simpler to do a backward-compatible upgrade without anyone displaying a traceback twice. That might not be true, though; I haven't though about it thoroughly. |
I was thinking of just switching over to |
cc @gnestor |
If I understand correctly, this (custom mimetype and renderer for errors and tracebacks) is already implemented in jupyterlab: As for "expandable" tracebacks, that sounds cool and I'd be willing to work on it. The question: Should we implement this in classic notebook or dedicate our resources to jupyterlab? |
The jupyter extension repo has a plugin, which does some visual stuff to a traceback: http://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/skip-traceback/readme.html |
This is a perfect application for a mime renderer extension. As stated above, jupyterlab ships with one, but it appears like it only modifies the background color of the output area. This skip-traceback extensions makes me think that we could do a lot better. We could provide an accordion like UI for tracebacks, error styles, and potentially auto-link references to local file resources. Another great thing about mime renderer extensions: they work for all kernels, so as long at kernels use |
Again, JupyterDay Boston,
I had also many request for "HTML expandable tracebacks". This might be more an IPython issue, i just don't remember if tracebacks support mimetype in notebooks.
The text was updated successfully, but these errors were encountered: