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

Collapsible error messages #3

Closed
psychemedia opened this issue Jul 22, 2021 · 4 comments
Closed

Collapsible error messages #3

psychemedia opened this issue Jul 22, 2021 · 4 comments
Labels
Challenging task enhancement New feature or request help welcome Extra attention is needed

Comments

@psychemedia
Copy link

psychemedia commented Jul 22, 2021

When working in Jupyter notebooks, long error messages can often be intrusive and add a lot of visual clutter to notebooks.

A couple of extensions ([classic notebook nbextensions/skip-traceback(https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tree/master/src/jupyter_contrib_nbextensions/nbextensions/skip-traceback) and jupyterlab-skip-traceback) both collapse the traceback under the error header, but I note that the friendly extension breaks at least the classic notebook extension.

For the Jupyter layout, it would be useful to return errors using the skip-traceback style folded display (perhaps with a setting to override a by-default collapsed view with an expanded view).

@aroberge
Copy link
Contributor

Thanks for this suggestion. I do not use Jupyter notebooks - except for testing with friendly - and was not aware of these extensions. I will look into implementing this after I finish preparing a talk for PyConAu.

@aroberge
Copy link
Contributor

I take this as different than what I propose in #5. Here, I consider finding a way to make the output of friendly compatible with the existing extensions. From what I have read, this means "packaging" the information compiled by friendly in a different way, rather than simply printing it.

I think that an iPywidget like suggested in #5 would be more user-friendly, but want to give the option for people to keep the existing ones (especially if they do not control what is installed by default and want to use friendly).

@aroberge aroberge added Challenging task help welcome Extra attention is needed labels Jul 22, 2021
@psychemedia
Copy link
Author

I think there are three possible approaches.

Either:

  • make your extension work with the other extensions;
  • make the other extensions work with your extension;
  • provide a collapsible heading with your extension that replicates the functionality of the other extensions even if it breaks them.

@aroberge
Copy link
Contributor

Closing this issue as I have decided that implementing my own version should suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Challenging task enhancement New feature or request help welcome Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants