Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

History navigation breaks in qtconsole #2485

Closed
aweinstein opened this Issue · 3 comments

4 participants

@aweinstein

I observe that, under some particular conditions, the behavior of the history navigation in the qtconsole breaks.

Typically, if I type a letter, say 'a', and then press the up arrow key, IPython only shows the items in the history that start with that letter. However, under some conditions this behavior stop working.

The phenomenon can be observed by typing the following in a qtconsole instance. (I am just showing what I type, not the IPython output):

a=1 'Enter'
b=2 'Enter'
b C-p C-a C-k a C-p

Here 'Enter' corresponds to pressing the enter key, and C-x corresponds to pressing Ctrl and the 'x' key.

In this example, I expect that, after pressing C-p the last time, I should see 'a=1' in the prompt (that's what I see after doing this in a terminal IPython instance), however, I see 'b=2' in the prompt.

@hwkongsgaard

I have the same issue, when I do ctrl-k on part of line, prefix history navigating no longer works

@minrk
Owner

If either of you could test #2819, I would appreciate the feedback.

@aweinstein

@minrk #2819 fix the behavior described in this issue. However, the following doesn't work:

a = 1 'Enter'
b = 2 'Enter'
[i for i in range(3)] 'Enter'
C-p C-p C-a C-k
[ C-p

Instead of seeing [i for i in range(3)], I see a = 2.

@Carreau Carreau closed this in eab1495
@minrk minrk added this to the 1.0 milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.