[IPython-user] Summary of line-editing keybindings

Fernando Perez Fernando.Perez at colorado.edu
Wed Feb 16 15:41:56 CST 2005


Hi all,

a user just posted this on c.l.py, I figured it could come in handy for people 
who don't know offhand all the readline keybindings.  Stuffing this into 
muscle memory can make your editing much more efficient.

best,

f.

############################################################3

huge help for interactive python
From: David S. <davidschein at alumni.tufts.edu>
Date: Wednesday 16 February 2005 01:49:11 pm
Groups: gmane.comp.python.general
no references

If you are using ipython on Windows then you will
have made sure you have Gary Bishop's readline
library as instructed in the ipython install
directions found at:
http://ipython.scipy.org/

Even if you use the standard commandline tool,
installing readline makes the basic command line a
lot easier to use.  (For some reason, I much
prefer it to IDLE or any of the other GUI-wrapped
interpreters.)

I could not find a list of the keyboard commands
that readline supports, so I generated:

http://fsinnovations.net/share/keymap.pdf

NOTES:
You can checkout the script that generates this at:
http://fsinnovations.net/share/readlinekeymap.py
This uses Ken Seehof's Python Cookbook recipe found at:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81982
I am sure it can be improved, but it was easy.  By the 
way, it generates LaTeK.

To install readline, get it at:
http://sourceforge.net/projects/uncpythontools.
You will also need the ctypes library by
Thomas Heller, found at:
http://starship.python.net/crew/theller/ctypes




More information about the IPython-user mailing list