This commit is contained in:
Will McGugan 2020-02-22 20:12:22 +00:00
parent e33afdd122
commit ba04c73a55
1 changed files with 7 additions and 1 deletions

View File

@ -204,8 +204,14 @@ The `Table` class is smart enough to resize columns to fit the available width o
## Tracebacks
Rich can render beautiful tracebacks which are easier to read and show more code than standard Python tracebacks.
Rich can render beautiful tracebacks which are easier to read and show more code than standard Python tracebacks. You can set Rich as the default traceback handler so all uncaught exceptions will be rendered by Rich.
Here's what it looks like on OSX (similar on Linux):
![traceback](./imgs/traceback.png)
Here's what it looks like on Linux.
![traceback_windows](./imgs/traceback_windows.png)
See the [rich traceback](https://rich.readthedocs.io/en/latest/traceback) documentation for the details.