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.
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.
One can click on individual buttons to show or hide the desired information.
Using the default formatter, instead of this new one, works somewhat acceptably with the dark theme.
Most unfortunately, the new interactive display just does not pick up the dark theme appropriately; I have not been able to figure out why.
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.
Anyone having some insights as to how to fix these problems should not hesitate to comment here or on the Github issue.
No comments:
Post a Comment