Last active
February 26, 2023 17:56
-
-
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.#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# ... | |
export PYTHONSTARTUP=~/.pythonstartup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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