spyder: Run selection shortcut not working while focused on console
While a portion of code is highlighted in Editor but the focus is on a console (Python or iPython), Run selection shortcut F9 is not running the selection. Run > Run selection menu works properly. If I am not mistaken, F9 would workas expected in Spyder 2.
Versions and main components
Spyder Version: 3.0.0.dev0
Python Version: Python 2.7.12 64 bits
Operating system: Windows 10
Dependencies
> jedi >=0.8.1 : 0.9.0 (OK)
> matplotlib >=1.0 : 1.5.1 (OK)
> nbconvert >=4.0 : 4.2.0 (OK)
> numpy >=1.7 : 1.11.1 (OK)
> pandas >=0.13.1 : 0.18.1 (OK)
> pep8 >=0.6 : 1.7.0 (OK)
> pyflakes >=0.5.0 : 1.2.3 (OK)
> pygments >=2.0 : 2.1.3 (OK)
> qtconsole >=4.2.0: 4.2.1 (OK)
> rope >=0.9.4 : 0.9.4 (OK)
> sphinx >=0.6.6 : 1.4.1 (OK)
> sympy >=0.7.3 : 1.0 (OK)
I would like to note that I am willing to try and locate (and perhaps fix) this issue myself. In case someone can reproduce this and think this can be handled by someone who’s willing to get familiar with Spyder’s code base, please feel free to guide me to relevant part of the source!
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 17 (13 by maintainers)
I believe he is talking about pressing up to go through previous commands.
The issue here would be if the cursor was at the bottom line, you would have to scroll through all the lines to get to the next previous command.
If I need to run more than a few lines in the console I will use codecells. You can even open a new file type your lines and hit control-enter. No saving necessary.
Exactly.
Agreed. The UX would become quite more complex and confusing.
I haven’t seen any argument here that an “up arrow+enter” in the console to run the previous entry wouldn’t fix.
If it was global I would expect that it would run the selected text in the currently active pane. For example running a line of code from the history, a previous command in the console or even an example from the documentation.
This is the route we could take, but how to maintain both shortcuts in sync?
Sorry @gerazov, but that’s what cells are for. Please read my https://github.com/spyder-ide/spyder/issues/3344#issuecomment-237561462 above for the rationale of our decision.
@spyder-ide/core-developers, what do you think about this? I think it should be closed as “Wont fix”.