The notebook layout

功能性的

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:

標題
Click to rename the notebook. The title is saved in the file; the tab shows it.
Save state
已儲存, 未儲存的變更, Autosaved 或 Recovered. When the file changed on disk, Changed on disk 與 重新載入 和 Keep mine.
測試
When the notebook has Tests cells: "3 tests failing", "1 tests need attention" or "5 tests passing" after a run. See 測試.
連線
Connection: … with its environment badge: the connection cells use unless they pick their own.
模式
Mode: This cell 或 Mode: Cell and stale inputs: what running one cell includes. Click to switch.
Run, Run All, Stop
The play button runs the selected cell; 全部執行 runs every cell; 停止 cancels every running cell.
Run menu
Every run mode: Run Cell, Run Cell and Stale Inputs, 全部執行, Run Stale Cells, Run Cell and Dependents, Run Cells Above, Run Cell and Below, Run Selected Cells 和 Check Without Running。參見 Running notebooks.
儲存
Saves to the notebook's file, asking for a name the first time.
匯出
匯出… opens the export dialog; 匯出 Markdown 和 匯出 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.
更多
另存為, Autosave to File, Zen Mode, Dense Cells 和 Embed All Outputs (見 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, 執行中, 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 唯讀 或 Writes allowed badge; bookmarked and pinned cells show Bookmarked 和 已釘選. 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 復原 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.
參數
The notebook's parameters and their current values. See Parameters and inputs.
變數
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.
搜尋
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 尋找).
Local data
The notebook's own DuckDB tables, their sizes and sources, and the local data settings. See Local data with DuckDB.
歷史記錄
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 和 ⇧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 名稱, Id 和 類型; SQL cells add:

Connection and Database
The cell's own connection, or Use the notebook's connection, with its environment badge.
安全性
這 唯讀 checkbox (clearing it asks first; see Allow writes), the cell's timeout and its row limit.
相依性
Reads from 和 Used by, each cell a link.
執行
The state, the last run's time and duration, and the cell's fingerprint (what its result is tied to; see Out of date).
限制
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 或 已釘選, kept in Memory only 或 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 和 Notebook: Toggle Dense Cells. Selection, drag, find, bookmarks and embedded outputs all work in both.