Skip to content

Instantly share code, notes, and snippets.

@SahbiOuali13
Last active February 26, 2023 17:56
Show Gist options
  • Save SahbiOuali13/e637a4f884a4ca6c38d43d11af794952 to your computer and use it in GitHub Desktop.
Save SahbiOuali13/e637a4f884a4ca6c38d43d11af794952 to your computer and use it in GitHub Desktop.
* Specify the location of your PYTHONSTARTUP file * Write down your preferences into your .pythonstartup file * It will be taken into account everytime you load your REPL session. * pip install rich for colorization.#
# .bashrc
# ...
export PYTHONSTARTUP=~/.pythonstartup
import sys
from importlib import reload
from pprint import pp
try:
from rich import pretty, traceback
except ModuleNotFoundError:
pass
else:
pretty.install()
traceback.install(show_locals=False)
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment