Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running same Keybindings in vscode for python and Jupyter

I have set up my Jupyter binding keys to run the current cell just as I run a python file in the terminal. I thought that by giving a when clause to Jupiter when the file/cell is focused would allow vscode to decide in which context the same Keybinding should be used, but apparently that is not working. Here is a pic of the when clause in both cases.

enter image description here

It would be great to use ctrl+enter in both situations but I am bit lost on how to achieve this.

like image 295
moth Avatar asked Dec 07 '25 02:12

moth


1 Answers

I had the same issue and fixed it by changing the When clause for the python file to the following

resourceExtname == '.py'

Keyboard Shortcuts

like image 130
Fons van der Laan Avatar answered Dec 08 '25 20:12

Fons van der Laan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!