Title: ipython scrambled terminal, after resizing window
Tags: python;terminal;ipython;readline
Question: I run ipython(2) in a terminal (debian stable). After resizing the window with the mouse, the printouts of ipython are annoyingly meesed up, eg:
if one input line is too long, instead of starting a new line, the first line is overwritten
calling a command help (eg by plot?), the page is broken, part is missing when scrolling it
Something probably related is here, and discussed here.
I tried without success: installing (by pip) readline and/or gnureadline; the !clear command in ipython; many terminal emulators (the qt ipython console doesn't have this problem), and tmux.
Do you know a possible solution / workaround to have ipython in a clean re-sizable terminal window?
EDIT: the problem is not there in ipython3 (3.5.3)
Comment: I used to have the same problem, at some point the problem disappeared... Couldn't you possibly find a backport of a newer IPython release?

Comment: Ooops, I switched from Debian's IPython to Anaconda's one, that is the point at which the problem disappeared...  sorry for the noise I'd possibly added.

Comment: Same problem on OSX for me. Surprisingly, nothing is out there that seems to address this.

Comment: not 100% sure, but today I think got this even without resizing the window

Comment: @gboffi I moved to Debian stretch, got ipython 2.7.13, and the issue is still there.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 5, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2016:00:03/17/16', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<python><terminal><ipython><readline>', 'Title': 'ipython scrambled terminal, after resizing window', 'ViewCount': 96, 'id': 36071579, 'user_AboutMe': None, 'user_AccountId': 2421943.0, 'user_DisplayName': 'scrx2', 'user_Reputation': 2142.0, 'user_Views': 70.0, 'user_id': 4117624.0}}