[IPython-user] How to get def, class or other multiline from history to current input?
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Thu May 22 21:24:41 CDT 2003
>>>>> "FP" == Fernando Perez <fperez at colorado.edu> writes:
>> When working on a new function I typically iteratively debug in
>> the interpreter, for which you really need a keystroke to bring
>> back the entire definition into a form which you can edit,
>> including entire line additions and removals and resubmit.
FP> ipython's line editing is readline-based, hence it works only
FP> for single-line editing. Writing a multi-line terminal
FP> editing system requires using curses, which is a large,
FP> complex and not very portable system. I simply haven't gone
FP> that route because it's far too big of a headache.
Just FYI perhaps you can take a look at these:
http://starship.python.net/crew/mwh/hacks/pyrepl.html
and
http://codespeak.net/rlcompleter2/
cheers,
prabhu
More information about the IPython-user
mailing list