Adding Rich tracebacks to Python shell output
May 15, 2022
Documentation:
Usage:
from rich.traceback import install
install(show_locals=True, max_frames=20, extra_lines=2, width=120)
Configuring within an application:
- for automatic configuration, add the above snippet to
./.venv/lib/python3.9/site-packages/sitecustomize.py
within your virtual environment