How to get pretty python interpreter automagically?
schedule · 1 min read

How to get pretty python interpreter automagically?

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)

Subscribe to my newsletter

Get new posts delivered straight to your inbox.