question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shift+Enter not running the code cell

See original GitHub issue

Environment 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” }

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

XXX

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
claudiaregiocommented, Apr 19, 2021

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found