[IPython-User] config in a python2/python3 environment
Jörgen Stenarson
jorgen.stenarson@bostream...
Fri Nov 18 15:26:21 CST 2011
Hi,
how do you handle the ipython configuration in a way that works for both
python2 and python3?
I did the following in my ipython_config.py to separate the exec_files
import sys
if sys.version_info[0] < 3:
#python2 versions
c.TerminalIPythonApp.exec_files = ['extras.py', 'ipython-imports.py']
else:
#python3 versions
c.TerminalIPythonApp.exec_files = []
/Jörgen
More information about the IPython-User
mailing list