diff --git a/package.json b/package.json index d8384bf5a9a7..46c24ab31d01 100644 --- a/package.json +++ b/package.json @@ -1086,7 +1086,7 @@ { "command": "python.execSelectionInTerminal", "key": "shift+enter", - "when": "editorTextFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused" + "when": "editorTextFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && activeEditor != 'workbench.editor.interactive'" }, { "command": "python.refreshTensorBoard",