The notebook layout

functional

The top bar, the cell list, the left rail's pages including Bookmarks, the cell inspector, the activity panel, and the Zen and Dense modes.

A notebook tab has five areas: the top bar, the cell list in the middle, the left rail, the cell inspector on the right and the activity panel at the bottom. The three side panels can be shown or hidden with the buttons at the right end of the top bar and resized by dragging their edges; SQLly remembers their sizes.

SQLly
Notebook tab with the left rail, cells, inspector and activity panelNotebook tab with the left rail, cells, inspector and activity panel
Every panel open: the outline rail on the left, the cells in the middle, the cell inspector on the right and the activity panel at the bottom.

The top bar

From left to right:

Title
Click to rename the notebook. The title is saved in the file; the tab shows it.
Save state
Saved, Unsaved changes, Autosaved or Recovered. When the file changed on disk, Changed on disk with Reload and Keep mine.
Tests
When the notebook has Tests cells: "3 tests failing", "1 tests need attention" or "5 tests passing" after a run. See Tests.
Connection
Connection: … with its environment badge: the connection cells use unless they pick their own.
Mode
Mode: This cell or Mode: Cell and stale inputs: what running one cell includes. Click to switch.
Run, Run All, Stop
The play button runs the selected cell; Run All runs every cell; Stop cancels every running cell.
Run menu
Every run mode: Run Cell, Run Cell and Stale Inputs, Run All, Run Stale Cells, Run Cell and Dependents, Run Cells Above, Run Cell and Below, Run Selected Cells and Check Without Running. See Running notebooks.
Save
Saves to the notebook's file, asking for a name the first time.
Export
Export… opens the export dialog; Export Markdown and Export Jupyter write those formats straight away; Convert to SQL Script opens the notebook as one script. See Exporting.
Dashboard, View, Present
Edit the notebook's dashboard, show only the dashboard, or present it full screen. See Dashboards and presentation.
More
Save As, Autosave to File, Zen Mode, Dense Cells and Embed All Outputs (see Embedded outputs).
Panel toggles
Show or hide the left rail, the activity panel and the cell inspector.

The cell list

Each cell has a header with a drag handle, its kind, its name (or id), its state (Not run, Running, Up to date, Out of date, Failed and so on), how long it took, and buttons to run, collapse, move up or down and delete it. SQL cells also show their connection and environment, and a Read-only or Writes allowed badge; bookmarked and pinned cells show Bookmarked and Pinned. Hover between two cells for a + that inserts any kind of cell there; under the last cell, a row of buttons does the same.

Click a cell to select it; ⇧-click selects a range and ⌘-click adds or removes one cell. With two or more selected, a bar above the cells runs, copies, cuts, duplicates, moves, collapses, converts, merges, bookmarks or deletes them all at once. Drag a cell (or the whole selection) by its handle to move it. Pinned outputs sit in a strip above the cells while you scroll. The keys for all of this are on the keyboard reference.

The list stays quick with hundreds of cells: a cell you aren't editing shows a lightweight, syntax-highlighted preview, and its editor is created only when you click into it. SQL areas grow with their content up to about two dozen lines and then scroll, and each result pane can be resized by dragging its bottom edge. A cell can also show only its output, with no header or editor, so the notebook reads like a report; see Embedded outputs and report-style notebooks. Deleting cells shows a toast whose Undo is the same step as the notebook's undo.

The left rail

The tabs along the top of the rail switch between its pages:

Outline
Markdown headings, indented by level, and named cells. Click one to jump to it.
Parameters
The notebook's parameters and their current values. See Parameters and inputs.
Variables
Every named cell with its kind and state: the names you can use in {{…}}.
Lineage
For each SQL cell, which cells it reads and which cells use it. See Named cells and references.
Search
Finds text in cell names and sources (not in results) and lists each hit as "cell, line N". For find and replace across the whole notebook, including chart titles and, optionally, result values, use ⌘F in command mode (see Find).
Local data
The notebook's own DuckDB tables, their sizes and sources, and the local data settings. See Local data with DuckDB.
History
Recorded runs, pinned snapshots and run comparison. See Run history and snapshots.
Bookmarks
Every bookmarked cell, with its kind and first line; click one to go to it. Bookmark a cell from its menu or with ⌘F2, and step through them with F2 and ⇧F2.
SQLly
Notebook left rail on the Lineage page with Reads and Used by for each SQL cellNotebook left rail on the Lineage page with Reads and Used by for each SQL cell
The Lineage page lists what each SQL cell reads and what uses it; the inspector shows the same for the selected cell.
SQLly
Notebook left rail on the Bookmarks tabNotebook left rail on the Bookmarks tab
The Bookmarks tab on the left rail lists every bookmarked cell.

The inspector

The inspector shows the selected cell. Every cell has Name, Id and Type; SQL cells add:

Connection and Database
The cell's own connection, or Use the notebook's connection, with its environment badge.
Safety
The Read-only checkbox (clearing it asks first; see Allow writes), the cell's timeout and its row limit.
Dependencies
Reads from and Used by, each cell a link.
Run
The state, the last run's time and duration, and the cell's fingerprint (what its result is tied to; see Out of date).
Limits
Maximum rows for this cell (empty means no limit).
Cache
Whether the result is reused and where it is kept: Always run, Reuse, For a time or Pinned, kept in Memory only or Encrypted on disk, optionally cleared when the connection disconnects. See Saved results.

Renaming a cell in the inspector updates every {{name}} and every formula that refers to it.

The activity panel

The bottom panel shows the run queue ("Run queue: orders → by_country") and a timeline, newest first, of every start, finish, failure and refusal with its timing, plus the reasons the planner gave for cells that were blocked and the results of Check Without Running. Copies into local data show their progress here, with Cancel.

Zen and Dense

  • More ▸ Zen Mode hides the left rail, the inspector and the activity panel, leaving only the cells. Choose it again to bring them back.
  • More ▸ Dense Cells tightens the padding around cells so more fit on screen.

Both are also in the command palette as Notebook: Toggle Zen Mode and Notebook: Toggle Dense Cells. Selection, drag, find, bookmarks and embedded outputs all work in both.