Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I seem to be getting an odd problem when using iPython sometimes.

Every time I try to go one line up or down (i.e. navigating through history or previous statements) it seems to put my cursor and the code in the middle of the screen, that ofcourse gives indentation errors.

Screenshot of the problem:


Any ideas how to fix this?

share|improve this question
Strange. Are you using Python at /usr/bin/python? How did you install IPython? As a sanity check, can you try using another terminal app like iTerm? – fideli Dec 23 '10 at 7:43
up vote 1 down vote accepted

After some digging around found out that "readlines" can cause such problems when installed via pip (on mac OS).

I removed current ipython and "readlines" lib and reinstalled them using "easy_install" which fixed the problem.

share|improve this answer
Good to hear, glad it works. – fideli Jan 14 '11 at 5:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .