Summary: I have a draft version of a new and arguably better way to display information from friendly for Jupyter labs/notebooks. For now, it only works with the default light theme. The following screen captures illustrate a new way to display the information from friendly inside Jupyter lab/notebooks. Instead of having to type some commands, the user can click on buttons. Initially only the error message is shown.[Image] Clicking on "More ..." reveals the friendly traceback (notice how the traditional file names are replaced by references to code blocks) and a few more buttons.[Image]
One can click on individual buttons to show or hide the desired information. [Image]
Using the default formatter, instead of this new one, works somewhat acceptably with the dark theme.
[Image]
Most unfortunately, the new interactive display just does not pick up the dark theme appropriately; I have not been able to figure out why. [Image]
Ideally, I would like to be able to use the custom dark theme that I have created to work with Rich, but have not figured out how to do it yet. [Image]
Anyone having some insights as to how to fix these problems should not hesitate to comment here or on the Github issue.
posted by André Roberge at 9:19 AM on Jul 24, 2021
"New interactive friendly tracebacks for Jupyter"
No comments yet. -