Issue
I have recently switched to Visual Code for Python coding and attempted to change keybindings. However, I came cross two seemingly different but yet similar keybindings:
"Jupyter: Run Current Cell And Advance" and "Notebook: Execute Notebook Cell and Select Below" (See image below).
Since they appear to do the same thing I gave them the same keyboard shortcut but I am still confused between the difference of the two.
From my understanding keyboard shortcuts are context sensitive. For instance, you will have different shortcuts when opening a .ipynb file when compared to opening a .py file.
So when is the "Jupyter"-context used as opposed to the "Notebook"-context? Are they not the same?
Solution
Any Shortcuts
works under some conditions specified in the When
. So, although you can find a lot of identical Shortcuts
, they will not conflict with each other on usual.
The Notebook
related shortcut was build in the VSCode, while the Jupyter
related shortcut was created by Jupyter Extension
.
But you can find many Notebook
shortcut can be used in the Jupyter
. That's because Notebook
was the common API in the VSCode, it intends to bring similar experiences inside VSCode in different Notebook interfaces.
Answered By - Steven-MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.