Shift+Enter not running the code cell
See original GitHub issueEnvironment data
VS Code version: Version: 1.56.0-insider (user setup) Commit: 8aff878db2542eea2dfb571c8bb485118bbb3113 Date: 2021-04-19T05:15:35.845Z Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0
- Jupyter Extension version: v2021.6.755784270
- Python Extension version: v2021.5.756443519-dev
- OS: Windows_NT x64 10.0.19042
- Python and/or Anaconda version: ‘3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) \n[GCC 7.3.0]’
- Type of virtual environment used: conda
- Jupyter server running: Issue is for both Local and Remote
Expected behaviour
When you hit “Shift+Enter” it will execute the cell
Actual behaviour
When you hit “Shift+Enter” it does a line return
Logs
{ “key”: “shift+enter”, “command”: “notebook.cell.executeAndSelectBelow”, “when”: “notebookCellListFocused && notebookCellType == ‘markdown’ || notebookCellListFocused && notebookCellExecutionState == ‘failed’ || notebookCellExecutionState == ‘idle’ || notebookCellExecutionState == ‘succeeded’ && notebookKernelCount > 0” }
Jupyter
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Jupyter
)
XXX
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
VS Code: Shift+Enter does not send code to Python Interactive
Shift + Enter is registered as a keyboard shortcut for both sending code to Terminal and for sending it to Python Interactive. I...
Read more >python Shift + enter not working in VScode with jupyter
In settings.json under .vscode add the following line: "jupyter.sendSelectionToInteractiveWindow": true. Then Shift+Enter should work.
Read more >Shift + Enter does not run a cell on native notebook #328
It can run a cell in the terminal or do nothing. Repro steps: Open notebook; Create a new cell at the top; Add...
Read more >VSCode Python Data Science Setup, Part 9: Shift+Enter to ...
VSCode is a multilanguage development environment that is quickly gaining popularity for #DataScience because it's light-weight, ...
Read more >Shift-Enter shortcut stops working as soon as the Jupyter Tool ...
Shift -Enter shortcut stops working as soon as the Jupyter Tool window shows up · Start the IDE (mine is IDEA 2019.1. ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@claudiaregio https://github.com/microsoft/vscode/issues/121673
Maybe we could file a feature request in VS Code repo to expose which extension is contributing each shortcut so that somewhere in our documentation we can have users check they don’t have other extensions contributing similar shortcuts?