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.

It would be great to use ctrl+enter in both situations but I am bit lost on how to achieve this.
I had the same issue and fixed it by changing the When clause for the python file to the following
resourceExtname == '.py'

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