Notebooks
A notebook is an interactive workspace made of cells. In SQL cells you query your project's tables, in Python cells you script against them, and in Markdown cells you write notes. Results appear right under each cell, so notebooks are a good place to explore data and try out an idea before turning it into a job.
The subtitle reads "Interactive SQL + Python over your project's tables". Without an open project the page shows "No project selected — choose one from the sidebar".
The notebooks list
With no notebooks, the page says "No notebooks yet. Create a notebook to explore your tables with SQL and Python."
| Column | What it shows |
|---|---|
| Name | The notebook name. Click it to open the notebook |
| Cells | How many cells it holds |
| Last run | How long ago a cell was last run, or never |
| Updated | How long ago it was last changed |
| Actions | A bin icon that deletes the notebook |
Once there are notebooks, a Search notebooks… box filters by name. Deleting asks you to confirm.
Create a notebook
- Click New notebook.
- Type a Notebook name… and click Create, or press Enter. Press Esc or click the ✕ to cancel.
- The new notebook opens with one SQL cell already in it:
SELECT 1 AS hello.
The notebook page
The top of the page has the notebook's name and its controls. A Notebooks link takes you back to the list.
| Control | What it does |
|---|---|
| Name | Click the title to rename the notebook. The new name is saved when you click away |
| Run all | Runs every SQL and Python cell, top to bottom |
| Kernel | Shows whether the notebook's session is ● active (with how long it has been idle) or ○ stopped. Open the menu and choose Restart kernel to start fresh |
| Save | Reads Saved ✓ when everything is saved, Save when there are unsaved changes and Saving… while saving |
| Secrets | Opens the secret bindings. A number in brackets shows how many are attached |
Changes are saved automatically about two seconds after you stop editing, so you rarely need the Save button.
Add cells
Three buttons under the last cell add a new one: SQL cell, Python cell and Markdown cell. With no cells, the page says "No cells yet — add one below".
| Cell type | Use it for |
|---|---|
| SQL | Querying your project's tables |
| Python | Scripts that work with your data |
| Markdown | Headings, notes and explanations. Click a rendered cell to edit it, and use Preview to see the result |
Work with a cell
Every cell has a header with its number, a type label and the controls below.
| Control | What it does |
|---|---|
| Run (play icon) | Runs the cell. You can also press Ctrl+Enter while editing. Markdown cells have no run button |
| SQL engine (SQL cells) | Chooses what runs the query: Auto, DuckDB or Spark. An engine that is not available is greyed out with the reason, such as "Spark Connect not configured" |
| ⋯ menu | Move up, Move down, Save as Job and Delete |
Results
After a cell runs, a line under it shows the outcome:
- ✓ with how long it took and, for a table result, the row count, such as
✓ 0.4s · 1,200 rows. - ✗ failed with the time, and the error message in red below it.
A query result is shown as a table. If there are more rows than fit, the footer says how many were returned and how many are shown, such as 1,200 rows (showing 100). Empty values show as null. Text results appear as plain output.
Run all
Run all goes through the cells in order. If a cell fails, it stops and a note says which one: "Run-all stopped: cell 3 failed". If Python is off, Python cells are skipped and the note says how many.
Save as Job
⋯ → Save as Job on a SQL or Python cell opens the New job page with the cell's code already filled in, and a name such as my-notebook-cell2. This is the way to turn something you proved out here into a scheduled job.
Secrets
Secrets lets you attach platform secrets to the notebook, so your code can use a key or password without it being written into a cell. Open the panel, add the binding and it is saved with the notebook.