Python tracebacks with Rich: Colorized output and local variables

Python tracebacks with Rich: Colorized output and local variables

Want your Python traceback to look nice? Use Rich:

from rich.traceback import install
install(show_locals=True)

Now your tracebacks will be colorized and highlighted, with local variables clearly displayed and set apart (thanks to show_locals=True).