Python Forum

Full Version: .startup.py
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(Nov-06-2019, 09:30 AM)perfringo Wrote: [ -> ]It adds up some time when loading interactive session but not so much that it will annoy.
You're clearly not importing matplotlib :)