I\'m trying to to auto load the division
module from __future__
on startup,
i\'ve currently got a simple script in the IPython startup libray with
i've found a solution to this one, in your IPython profile directory (by default - .ipython\profile_default
), edit the file ipython_config.py
(create it with ipython profile create
if it does not exist) with the following lines:
# loads the root config object
c=get_config()
# executes the line in brackets on program launch
c.InteractiveShellApp.exec_lines = ['from __future__ import division']