You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jupyter Extension version (available under the Extensions sidebar): v2021.6.999406279
Python Extension version (available under the Extensions sidebar): v2021.6.944021595
OS (Windows | Mac | Linux distro) and version: Windows 10, Mac, and Linux
Python and/or Anaconda version: 3.7.4
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
Jupyter server running: Local and Remote
Expected behaviour
Should be like previous versions (before 1.57.0), when pressing "Ctrl-Enter" to run a cell, the text focus should remain in that some cell's text area, getting ready for users to add/change code and rerun.
Actual behaviour
Focus is lost
Steps to reproduce:
open a jupyter notebook
type print(1)
press "Ctrl-Enter" to run the cell
The text was updated successfully, but these errors were encountered:
ws1088
added
the
bug
Issue identified by VS Code Team member as probable bug
label
Jun 20, 2021
@ws1088 The previous behavior where focus remains in the text editor after ctrl+enter was actually a bug, as reported by another user: #6198 We fixed this by contributing ctrl+enter tied to a custom command, jupyter.notebookeditor.keybind.executeCell.
You can go back to the old ctrl+enter behavior by opening the keyboard shortcuts configuration page:
And changing the keybinding for the following command to anything else:
thanks. it's interesting how different use cases consider something as a bug or not. personally i like ctrl-enter to remains in the cell focus because most of the time i would write some code and test it out. maybe 5% of the time when i press ctrl-enter i would want to loose focus.
I ended up removing jupyter.notebookeditor.keybind.executeCell and added back notebook.cell.execute to get back to pre-1.57.0 behavior:
Environment data
Expected behaviour
Should be like previous versions (before 1.57.0), when pressing "Ctrl-Enter" to run a cell, the text focus should remain in that some cell's text area, getting ready for users to add/change code and rerun.
Actual behaviour
Focus is lost
Steps to reproduce:
print(1)
The text was updated successfully, but these errors were encountered: