How to run current line in Spyder 3.5( ctrl +f10 not working)
The key to run the current line by itself is F9
. The shortcut ctrl+F10
is used if you are in debugging mode.
You can see a list of shortcuts by selecting Preferences
in the Tool
menu, and then clicking on Keyboard shortcuts
.
Coming from R studio I imagine you were hoping to have a command that runs the next command, rather than just that one row (which can break a command into several parts and cause errors).
The exact equivalent doesn't exist yet but if you get accustomed to adding #%% before and after chunks ("cells") you want to run together then you can use the following commands to run the whole chunk.
Run cell: Ctrl + Return
Run cell and advance : Shift+Return
F9
is the key that does the job for you. To replicate the RStudio style, go to Preferences
in Tools
menu and go to Keyboard Shortcuts
.
Since Ctrl + Enter
is assigned to another function, change that first.Then assign the F9
key value to Ctrl + Enter
. Now Spyder is the same as RStudio. Atleast in a way.