Code Editing
Run Cell
Execute the current code cell. This queues the cell for execution if it’s in an idle state.
- The cell is added to the execution queue
- Only works if the cell is in
idlestate - The kernel will execute the cell and display outputs
Document Operations
Undo
Undo the last change to cell structure (not code content).
- Cell creation and deletion
- Cell movement and reorganization
- Changes to cell hierarchy
Canvas Navigation
Pan Canvas
Click and drag on the canvas background to pan around your notebook.
Zoom
Use the scroll wheel to zoom in and out of the canvas. Hold Cmd/Ctrl while scrolling for more precise control.
2D Scrolling
The canvas supports 2D scrolling - use your trackpad or scroll wheel to move in any direction.
Cell Operations
Create New Cell
Right-click on the canvas to open the context menu with options to create:
- Code Cell (Python)
- Text Cell (Markdown)
Drag Cell
Click and drag the cell toolbar (top bar of any cell) to move the cell around the canvas or reorganize cell hierarchy.
- Orange border indicators show where the cell will be placed
- Drop on another cell to create a parent-child relationship
- Drop on empty canvas to make it a top-level cell
Collapse/Expand Cell
Hover over a code cell to reveal collapse buttons on the left:
- Click the top button to collapse/expand the input (code)
- Click the bottom button to collapse/expand the output
i: Input collapsed onlyo: Output collapsed onlyb: Both collapsednull: Both expanded
Monaco Editor Shortcuts
The Monaco editor includes standard code editor shortcuts:- Cmd/Ctrl + Z: Undo
- Cmd/Ctrl + Shift + Z: Redo
- Cmd/Ctrl + F: Find
- Cmd/Ctrl + H: Find and replace
- Cmd/Ctrl + /: Toggle line comment
- Alt + Up/Down: Move line up/down
- Alt + Shift + Up/Down: Copy line up/down
- Cmd/Ctrl + D: Add selection to next find match