S
sureshdsk.dev
About Projects Random Musings Postgres Tips
Today I Learned (TIL) Python Python Decorators Docker Tips K8s Policy Management
All Posts
About Projects Random Musings Postgres Tips
Today I Learned (TIL) Python Python Decorators Docker Tips K8s Policy Management All Posts
How to get pretty python interpreter automagically?
schedule Oct 21, 2021 · 1 min read

How to get pretty python interpreter automagically?

PythonPython 3Open Source
link
Part of series
Today I Learned (TIL)

Install rich

➜ pip install rich
➜ mkdir ~/pystartup
➜ touch ~/pystartup/startup.py

Create startup script

➜  ~ echo "import rich.pretty; rich.pretty.install()" > ~/pystartup/startup.py

export to .bashrc or .zshrc

➜ echo "export PYTHONSTARTUP=~/pystartup/startup.py" >> ~/.zshrc

rich_python.png

link
Part of series
Today I Learned (TIL)
S
SURESHDSK.DEV

Software Architect from Chennai, India.
First, solve the problem. Then, write the code!

Connect
code alternate_email work

© 2026 DSK. All rights reserved.

RSS · Sitemap