My use case is I want to initialize some functions in a file and then start up ipython with those functions defined. Is there any way to do something like
i
The following is for the case when you want your startup scripts to automatically be run whenever you use ipython (instead of having a script that you must specify each time you run ipython).
For recent versions (i.e. 5.1.0) of ipython, place one or more python scripts you wish to have executed in the IPYTHON_CONFIG_DIR/profile_PROFILENAME/startup folder.
On linux, for example, you could put your python startup code into a file named ~/.ipython/profile_default/startup/10-mystartupstuff.py if you want it to run when no ipython profile is specified.
Information on creating and using ipython profiles is available here.