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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With