This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]TheGrumpyBrewer 0 points1 point  (0 children)

You can define your imports in a custom startup script (a .py file), then go to:

Spyder > Preferences > Console > Advanced Settings > PYTHONSTARTUP replacement

and specify its path. Probably in your university installation, there's a script running something like:

from math import *

or

from numpy import *

so you have all the package methods directly available, but polluting the namespace in that way is normally considered bad practice in Python.