Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make IPython use my original startup script

I had set up a startup.py script for python that imported the commonly used modules like re, os and sys. Ipython however does not seem to run it at startup because trying to use one of the modules raises an error.

like image 931
Plakhoy Avatar asked Jul 22 '26 20:07

Plakhoy


1 Answers

if you drop your startup.py into the directory found at $(ipython locate profile)/startup/, then it will run on every IPython startup (you may need to create the startup directory first).

like image 149
minrk Avatar answered Jul 28 '26 01:07

minrk