I usually use ipython as an interactive execution environment for python, but every time I start it
from re import *
from imp import *
I wanted to execute these automatically when they started, so I investigated how to do it.
Script you want to execute at startup **. Place it in the directory under ipython / profile_default / startup **. Probably all .py files will be executed. By the way, since it is the default setting in my windows environment, I made it like ** C: \ Users \ {user_name} \ .ipython / profile_default \ startup \ init.py **. It's a small thing, but it seems to be unexpectedly convenient
Recommended Posts