<div dir="ltr">You can type '%edit 1' to edit In [1].<div>(Or '%edit _2' to edit Out [2])</div><div><br></div><div>In QtConsole, the behavior is as you expected. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 21, 2014 at 5:43 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't know whether I am imagining this, but I thought that the<br>
console IPython shell allowed history editing of multi-line<br>
statements. So, for example, if In[1] is<br>
<br>
    for i in range(3):<br>
        print(i)<br>
<br>
I thought I could use up-arrow to recall the whole two-line statement<br>
and edit it. But when I try this (on Windows, with Python 3.4, IPython<br>
2.3.0 and pyreadline 2.0) it seems that up-arrow recalls single lines.<br>
<br>
Is there a configuration setting I need to change, or am I imagining<br>
this and IPython doesn't do that? (I may be confusing the IPython<br>
shell with PowerShell's PSReadLine, which does). I know I can use the<br>
notebook for this, but sometimes console IPython is more convenient...<br>
<br>
Thanks,<br>
Paul<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br></div>