Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut for restarting kernel in spyder

Tags:

python

spyder

Does anybody know the keyboard shortcut for restarting the kernel in Spyder?

It says it should be Ctrl + . but that is not working. I'm using a norwegian keyboard so I'm thinking it is related to that.

I have tried various combinations of Ctrl + something to no avail.

Anybody else using a non-US/EN keyboard having this issue? Suggestions? It's not life or death but it would be nice to know the shortcut.

like image 945
mortysporty Avatar asked Sep 01 '17 17:09

mortysporty


People also ask

How do I restart kernel in Spyder?

Open spyder. Create any variable in the console (this step is not necessary). Choose "Restart kernel" option from the console "hambrger icon". Accept by pressing "OK".

What does F5 do in Spyder?

F5 for running an entire Python script.

How do I restart the kernel in anaconda?

If you have installed Spyder with anaconda, then open Spyder window. Then Consoles (menu bar) -> Restart Consoles. or you can use CTRL+. which is a shortcut key to restart the console.


2 Answers

I figured it out.

The console (not the editor or the file explorer or some other part of the interface) has to be selected, then hit Ctrl + ..

Facepalm.

like image 128
mortysporty Avatar answered Oct 14 '22 06:10

mortysporty


Ctrl + L works on my Hebrew keyboard so it should also work with the norwegian one.

like image 35
Yuval Raz Avatar answered Oct 14 '22 06:10

Yuval Raz