Nov-06-2019, 09:30 AM
Does anybody uses .startup.py and for what?
As .startup.py runs for interactive sessions, not when Python is running programs one don’t have to worry that it will interfere when one is doing 'real stuff'.
I personally use it to import the modules I use the most (datetime, math, os, sys, time, collections, itertools, functools, numpy, pandas) so they are conveniently available right away. It adds up some time when loading interactive session but not so much that it will annoy.
As .startup.py runs for interactive sessions, not when Python is running programs one don’t have to worry that it will interfere when one is doing 'real stuff'.
I personally use it to import the modules I use the most (datetime, math, os, sys, time, collections, itertools, functools, numpy, pandas) so they are conveniently available right away. It adds up some time when loading interactive session but not so much that it will annoy.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.