Help › Work in notebooks

Use the keyboard in notebooks

Move between a notebook's cells, add, change, move and delete them, and run them from the keyboard, with Jupyter's keys.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

A notebook uses Jupyter's keys, so what your fingers know from Jupyter works here. Like every key in Querlyn they are commands: see them all, and change them, in Help › Keyboard Shortcuts and Settings › Keyboard.

Two modes

  • Edit mode: a cell's editor has the keyboard and you type in it. Its border is highlighted.
  • Command mode: the list of cells has the keyboard. The selected cell has a highlighted border and a stripe at its left, and single keys act on cells.

Notebook › Edit Cell (↩ on macOS or Enter on Windows and Linux), or a click in a cell's text, goes to edit mode; a text cell then shows its Markdown to edit. ⎋ on macOS or Esc on Windows and Linux, or Notebook › Leave Cell Editor, goes back to command mode (when there is nothing else for ⎋ on macOS or Esc on Windows and Linux to close, such as the completion list). Clicking a cell outside its text selects it in command mode.

Run

These work in both modes:

CommandKeys
Notebook › Run Cell⌘↩ on macOS or Ctrl+Enter on Windows and Linux
Notebook › Run Cell and Select Below⇧↩ on macOS or Shift+Enter on Windows and Linux
Notebook › Run Cell and Insert Below⌥↩ on macOS or Alt+Enter on Windows and Linux
Notebook › Run Cell and Dependents⇧⌘↩ on macOS or Ctrl+Shift+Enter on Windows and Linux

Notebook › Run All Cells, Notebook › Run Cells Above, Notebook › Run Selected Cell and Below and Notebook › Run Out-of-Date Cells have no keys of their own; give them some in Settings › Keyboard, or use the toolbar and the Notebook › Run All Cells menu. See Keep a notebook's results up to date for what Run Cell and Dependents runs.

Move between cells

In command mode:

CommandKeys
Notebook › Select Cell Above↑ on macOS or Up on Windows and Linux, or K
Notebook › Select Cell Below↓ on macOS or Down on Windows and Linux, or J

Change cells

In command mode:

CommandKeys
Notebook › Add Query Cell AboveA
Notebook › Add Query Cell BelowB
Notebook › Change Cell to TextM
Notebook › Change Cell to QueryY
Notebook › Delete CellD D
Notebook › Undo Delete CellZ
Notebook › Move Cell Up⌥↑ on macOS or Alt+Up on Windows and Linux
Notebook › Move Cell Down⌥↓ on macOS or Alt+Down on Windows and Linux
Notebook › Collapse or Expand OutputO
Notebook › Interrupt KernelI I
Notebook › Restart Kernel0 0

Notebook › Delete Cell's keys, and those of Interrupt Kernel and Restart Kernel, are pressed one after the other, as in Jupyter. Python cells' kernel: see Run Python in a notebook.

The single keys act only while the list of cells has the keyboard, never while you type in a cell.

Help for Querlyn 0.1.0. All help topics