I am very new to Python and I am used to R studio so I choose Spyder. On the Spyder layout I saw a button 'run current line (ctrl +f10)'. But it doesn't work by pressing the button or c+10. Am I missing something? I can only select the script and 'ctrl+enter ' to run current line which is not convenient at all. I am using ubuntu with Anaconda distribution.
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 . In Spyder 3.3.
To execute the program, select Run -> Run (or press F5), and confirm the Run settings if required. If so, then you have just run your first Python program - well done.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With