python: interactive console imports sympy by default

This commit is contained in:
dogeystamp 2024-11-04 11:13:19 -05:00
parent 30c7e0f1e1
commit 8674b4b495
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,7 @@
try:
from sympy import init_session, Rational
init_session()
R = Rational
except ImportError:
pass

View File

@ -8,6 +8,9 @@ export VARS_SET=1
# by default chmod o-rwx
umask 007
# python rc/startup file
export PYTHONSTARTUP="$HOME/.config/pythonstartup.py"
# Set XDG directories
export XDG_CONFIG_HOME="$HOME"/.config
export XDG_CACHE_HOME="$HOME"/.cache