I would like to play around in the python interpreter but with a bunch of imports and object setup completed. Right now I\'m launching the interpreter on the command line and do
I use PYTHONSTARTUP.
PYTHONSTARTUP
My .bash_profile has a path to my home folder .pyrc, which as the import statements in it.
.bash_profile
.pyrc
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONSTARTUP