Editing your config file. Open up your terminal and complete the following steps.

Step 1: Make sure you have the latest ipython version installed

$ ipython --version

Step 2: find out where your config file is

$ ipython profile create

Step 3: Open the config file with an editor based on the location of your config file. I use atom. For example:

$ atom ~/.ipython/profile_default/ipython_config.py

Step 4: Look for the following lines in the config file:

c.InteractiveShellApp.extensions = []

change it to:

c.InteractiveShellApp.extensions = ['autoreload']

and then uncomment that line

find:

c.InteractiveShellApp.exec_lines = []

change it to:

c.InteractiveShellApp.exec_lines = ['%load_ext autoreload', '%autoreload 2']

and then uncomment that line

Done.

--

--

Ke Gui
Ke Gui

Written by Ke Gui

An ordinary guy who wants to be the reason someone believes in the goodness of people. He is living at Brisbane, Australia, with a lovely backyard.

No responses yet