简体   繁体   中英

Within Visual Studio Code, what is the difference between a jupyter notebook and a notebook?

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?

"Jupyter: Run Current Cell And Advance" and "Notebook: Execute Notebook Cell and Select Below" keybindings.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM