Python Forum
.startup.py - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: .startup.py (/thread-22276.html)



.startup.py - perfringo - Nov-06-2019

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.


RE: .startup.py - micseydel - Nov-07-2019

(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 :)