Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using iPython in Terminal.app (on Mac), and when I scrollback to a multi-line block it's really slow moving between lines. Is there a keybinding (or can I configure one) to make it possible to easily move between lines quickly?

share|improve this question
add comment

2 Answers

Ipython depends upon the readline bindings. In looking through the man page for readline, I could not find a command that skips by lines, but moving by words is better than moving by character, so I have added the lines

c.TerminalIPythonApp.exec_lines = ['import readline',
  """readline.parse_and_bind('"5D" backward-word')""",
  """readline.parse_and_bind('"5C" forward-word')"""]

to my ipython_config.py file (for details on this file see the ipython start up files reference.) Note that the "5D" comes from what appears on my screen when I type ctrlleft, and similar for ctrlright.

share|improve this answer
add comment

I just did a quick check and with the latest version of iPython I don't have the same problem.

Have you installed the gnu readline package or the python equivalent? If you haven't then I'd recommend "sudo pip install readline" at the terminal prompt.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.