[Tutor] IPython problem: Difficulty in setting editor to TextPad
arsyed at gmail.com
Sat Jul 19 00:41:53 CEST 2008
I just set the EDITOR environment variable under windows to textpad and %ed
works fine from ipython. It also gets used by subversion and other programs
for commit messages, etc.
"C:\Program Files\TextPad 5\TextPad.exe"
On Thu, Jul 17, 2008 at 11:39 AM, Dick Moores <rdm at rcblue.com> wrote:
> At 08:13 AM 7/17/2008, Alan Gauld wrote:
>> "Dick Moores" <rdm at rcblue.com> wrote
>>> In my ipy_user_conf.py I have put this line:
>>> ipy_editors.install_editor("C:\Program Files\TextPad 5\TextPad.exe")
>> escape the spaces and backslashes(raw string might work as well)
> Yeah, I tried that (except for the raw string).
> ipy_editors.install_editor("C:\\Program\ Files\\TextPad 5\\TextPad.exe")
>> OR maybe
>> ipy_editors.install_editor(r"C:\Program Files\TextPad 5\TextPad.exe")
> I finally got some help from one of the main IPython guys (just now). The
> line that partially works is
> ipy_editors.install_editor('"C:\Program Files\TextPad 5\TextPad.exe"
> But using the line number doesn't work, so I skip it and do
> In : ed versions.py
> Editing... > "C:\Program Files\TextPad 5\TextPad.exe" versions.py(0)
> This DOES open versions.py in Textpad, with the caret at line 1.
> Thanks for your educated guesses, Alan.
> Have you seen the video introducing the terrific
> and free IDE, Ulipad? Download it from my website.
> Tutor maillist - Tutor at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor