-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Open files directly from tracebacks #13277
Comments
I'm happy to hear thoughts on this and also raise a PR for this. |
This would be a great UX improvement. Some things to consider:
|
Not sure why sanitizer would be responsible for this? One option is to extend
Or to make a second function ( Using |
We could have a new |
Problem
Google Colab has a handy feature which allows the user to jump to the file which caused an error directly from the traceback. Here's how this looks -
I find this really useful and I think it should also be supported in JupyterLab.
Proposed Solution
It should be possible to modify the
renderText
(or create a new method altogether) method to have anILinkHandler
andISanitizer
. Thesanitizer
can take care of wrapping the paths in anchors and thelinkHandler
can handle opening of the file in a sidepanel.The text was updated successfully, but these errors were encountered: