<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 22 October 2014 12:14, Paul Moore <span dir="ltr"><<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":23j" class="" style="overflow:hidden">Actually, it looks like it's deliberate in IPython. See<br>
<a href="https://github.com/ipython/ipython/commit/1bcb58e939edac7812d0ad70d5072e27540b4f32" target="_blank">https://github.com/ipython/ipython/commit/1bcb58e939edac7812d0ad70d5072e27540b4f32</a><br>
(back in 2011).<br>
<br>
I'm not entirely sure how I change that config directly, so I hacked<br>
the source. With TerminalInteractiveShell.multiline_history=True,<br>
multi-line history works, but the display is corrupted. So it looks<br>
like there is a pyreadline display issue at the root of this (i.e.,<br>
it'd need multi-line display in pyreadline to work before it made<br>
sense to default this to True).<br></div></blockquote><div><br></div><div>That's probably why it was disabled on Windows in the first place. If you haven't already, try with the pyreadline-ais fork - the things it says it has implemented may be relevant here.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":23j" class="" style="overflow:hidden">
PS How would I set TerminalInteractiveShell.multiline_history on the<br>
IPython command line? I'd like to at least report this as a pyreadline<br>
bug, and being able to describe how to reproduce it *without* saying<br>
"hack IPython" would be nice :-)</div></blockquote></div><br></div><div class="gmail_extra">It should be as simple as adding --TerminalInteractiveShell.multiline_history=True at the command line.<br><br></div><div class="gmail_extra">Thomas<br></div></div>