Script execution at startup with ipython

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

Script execution at startup with ipython
Extend Python's interactive mode
Script execution at startup with ipython
Setting to change IPython prompt to'>>>' at startup
Runlevel at OS startup
Start IPython with virtualenv
Make slides with iPython
Access the file with a relative path from the execution script.
[Python] Get the script execution directory with an absolute path
When using optparse with iPython
Parallel computing with iPython notebook
Play with Jupyter Notebook (IPython Notebook)
Execution time measurement with Python With
Run Apache-Spark with IPython Notebook
Graph drawing with IPython Notebook
Use Bokeh with IPython Notebook
How to specify a .py file to load at startup in IPython 0.13
Programd automatic start at startup with Raspberry Pi 3B + systemd Summary