looking to move away from Jupyter Notebook and seen interactive window in VSCode. However selecting code and then pressing shift+enter sends execution output to terminal, not interactive window.
Added code to keyboard shortcuts:
{
"key": "shift+enter",
"command": "python.execSelectionInteractive",
"when": "editorTextFocus && editorLangId == 'python'"
}
But that didn't work. Output still in terminal. What do I need to do?
looking to move away from Jupyter Notebook and seen interactive window in VSCode. However selecting code and then pressing shift+enter sends execution output to terminal, not interactive window.
Added code to keyboard shortcuts:
{
"key": "shift+enter",
"command": "python.execSelectionInteractive",
"when": "editorTextFocus && editorLangId == 'python'"
}
But that didn't work. Output still in terminal. What do I need to do?
Share Improve this question asked Feb 8 at 9:43 elksie5000elksie5000 7,76214 gold badges64 silver badges102 bronze badges1 Answer
Reset to default 0Ah. https://www.youtube.com/watch?v=F60iJ3xxgtg
Add
# %%
And there you go. Interactive code like Jupyter Notebook in script. Nice.