- create ipython profile
ipython profile create default
- edit profile
## lines of code to run at IPython startup.
c.InteractiveShellApp.exec_lines = ['%autoreload 2']
## A list of dotted module names of IPython extensions to load.
c.InteractiveShellApp.extensions = ['autoreload']
done.