How to run current line in Spyder 3.5( ctrl +f10 not working)

Jim picture Jim · Aug 19, 2016 · Viewed 48.9k times · Source

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.

Answer

Jitse Niesen picture Jitse Niesen · Aug 19, 2016

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.