-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't traverse console history for commands longer than 1 line #5935
Comments
I can confirm have experienced this in many cases on Spyder 3.2.3 - 2.3.4 on Windows, as well, and it indeed is a major frustration. |
That was fixed in qtconsole 4.3.1, I think. Please update and try again. |
@ccordoba12 Okay, so with
In all of these cases, I see no reason why both up/down should consistently move to the previous/next as long as the cursor is anywhere on the first/last line, and not stop working arbitrarily. In fact, to deal with the case of having to scroll through an entire multiline statement to change direction even if all this does work (if it didn't, things get even worse), I would suggest that Ctrl-Up/Down would always skip the the previous/next statement regardless of the current line the cursor is positioned in a multiline, as they currently have no apparent function in So, should I post this as a new issue in the |
I can confirm that the issue no longer applies with qtconsole 4.3.1. Thanks for the help! However, I agree with @CAM-Gerlach that the behaviour still a little inconsistent. In particular, if you press left or right in the middle of a multiline statement, up/down do nothing (not even change the line) unless you set the cursor to the very first character of that statement, in which case you can only go up.I also checked in IPython-qtconsole and the behaviour is the same there - but it's not as apparent, because in regular IPython, you don't tend to call runfile with very long parameters. In general I like the IPython console. However, these issues, combined with the lack of autocomplete, have kept me from upgrading to Spyder 3.2 and losing the regular Python console. |
Yep, please do it @CAM-Gerlach. Thanks! |
Great! Closing this one then.
The Python console had a simpler design, e.g. it couldn't complete multi-line statements. Besides, autocomplete works just fine in the IPython console, the only problem is that it's not automatic, you need to Press |
Created as #259 on the qtconsole repo.
|
Description of your problem
Any command in the IPython console longer than one line will stop the user from going back through the console history (not ones with line breaks - just something long that overflows to two lines). Even if they manually reposition the cursor at the end of the line, it won't go back. If they manually position the cursor at the start of the line, it will, but that now filters alphabetically or something.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expected: go back through history.
What happens: the cursor moves to some part of the second line of the command and stays there.
Please provide any additional information below
Versions and main components
Dependencies
jedi >=0.9.0 : 0.10.2 (OK)
matplotlib >=1.0 : 2.0.0 (OK)
nbconvert >=4.0 : 5.1.1 (OK)
numpy >=1.7 : 1.12.1 (OK)
pandas >=0.13.1 : 0.19.2 (OK)
pep8 >=0.6 : 1.7.0 (OK)
psutil >=0.3 : 5.0.1 (OK)
pyflakes >=0.5.0 : 1.5.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.7.2 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.10.5 (OK)
sphinx >=0.6.6 : 1.5.6 (OK)
sympy >=0.7.3 : 1.0 (OK)
The text was updated successfully, but these errors were encountered: