# iPython Startup Scripts

I have a bunch of useful Python functions that I often use for quick scripting. These include functions like read_from_csv_file and convert_date_string_to_datetime. I used to copy and paste them from a file to iPython each time I needed them.

However, I recently found out that iPython supports "startup files" (opens new window). Startup files are Python files in your ~/.ipython/profile_default/startup/ directory that are automatically run each time you start up iPython.

Simply add a .py or .ipy file to your ~/.ipython/profile_default/startup/ directory and it will be run the next time you run ipython!

Newsletter

If you'd like to subscribe to my blog, please enter your details below. You can unsubscribe at any time.

Powered by Buttondown.

Last Updated: 11/20/2023, 10:04:51 AM