[Tutor] IPython: trouble setting an editor

Richard D. Moores rdmoores at gmail.com
Tue Sep 28 02:26:02 CEST 2010


64-bit Vista
Python 2.6 for IPython 0.10
I also have Python 2.7 and 3.1

I'd like to use the version of IDLE that comes with Python 2.6.
However, if I have the line

ipy_editors.idle()

in my ipy_user_conf.py,

And enter   edit,

What opens is the IDLE for Python 3.1.

So, in imitation of this line in ipy_user_conf.py:

#ipy_editors.scite('c:/opt/scite/scite.exe') ,

I swapped out the above line for

ipy_editors.idle("c:/Python26/Lib/idlelib/idle.pyw")

and now when I enter

ed fact.py,  or  just   ed ,    (fact.py is a script of mine that I
copied to C:Python26/Scripts)

the IDLE for Python 3.1 opens, all set to edit the SCRIPT
c:/Python26/Lib/idlelib/idle.pyw !

What's going on here? What do I have to do to use the Python 2.6
version of IDLE with IPython?

BTW entering   run fact.py    at the IPython prompt runs fact.py just fine.

Thanks,

Dick Moores


More information about the Tutor mailing list