Ask Your Question

Revision history [back]

The Jupyter Notebook Cells' statuses and shortcuts in VSCode on MacOS are defined as follows:

  1. Code Cell Status:

    • When a code cell is executing, the cell's status is changed to "Busy" and a spinning icon is displayed on the left side of the cell.
    • Once the execution is complete, the cell's status is changed to "Success" if there were no errors, or "Error" if there were any errors.
  2. Cell Types:

    • Markdown cell: Command + M, M (Switch to Markdown cell)
    • Code cell: Command + M, Y (Switch to code cell)
    • Raw cell: Command + M, R (Switch to raw cell)
  3. Cell Navigation:

    • Command + Enter (Run selected cell)
    • Shift + Enter (Run current cell and move to next cell)
    • Option + Enter (Run current cell and insert new cell below)
    • Up arrow key (Move cursor to previous cell)
    • Down arrow key (Move cursor to next cell)
  4. Cell Editing:

    • Command + Shift + - (Split cell at cursor)
    • Command + Shift + P (Open Command Palette)
    • Command + S (Save changes to notebook)
    • Esc (Enter command mode)
    • Enter (Enter edit mode)
  5. Other Shortcuts:

    • Command + M, H (Show keyboard shortcuts)
    • Command + M, I (Interrupt kernel)
    • Command + M, . (Restart kernel)