Cahiers
SQL and Markdown cells that know what they depend on, run read-only by default, and save as plain files you can review in Git.
A SQLly notebook is a tab that holds a list of cells. Most are SQL cells, each with its own result grid, and Markdown cells that say what the SQL is for. Around them you can add charts, tables, pivots, KPI tiles, formulas, data checks, result comparisons, query plans, file attachments, AI cells and dashboards. A cell can read another cell's result by name, so a notebook can start from one base query and build on it step by step, and SQLly works out the order to run things in.


What makes them different
- Cells know what they depend on. Every result is tied to its SQL, the parameters it uses, its connection and sign-in, and the cells it reads. Change one of those and only the cells affected are marked Out of date; an old result is never shown as current. See Running notebooks.
- Lecture seule par défaut. New SQL cells run in the database's read-only mode. A cell that changes data runs only after you choose Allow writes for it and confirm, and the usual change review still applies. See Connections and safety.
- Opening never runs anything. A notebook that was not created on this computer, or whose SQL was changed outside SQLly, waits behind a banner until you trust it and choose which connections it may use.
- Plain files. A notebook saves as a
.sqllynbJSON file with stable cell ids and predictable formatting, and without query results, so it diffs cleanly in Git. See File format and Git. - Each cell can use its own connection, and cells on different connections can be joined in the notebook's own local DuckDB database. See Local data with DuckDB.
Dans cette section
Pour commencer
- Getting started
- Create a notebook, write and run your first SQL and Markdown cells, save it as a .sqllynb file, and open notebooks other people send you.
- 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.
- Cells and cell types
- Every kind of cell a notebook can hold, what each one is for, and where its guide is.
Build a notebook
- Named cells and references
- Name a cell and read its result from another with {{name}}: how references are folded into SQL, renamed, and reported when they go in a circle.
- Running notebooks
- Run one cell, its stale inputs, everything or only what is out of date; what each state badge means, row limits, Fetch All and Stop.
- Connections and safety
- Per-cell connections, environment badges, read-only by default, Allow writes, production prompts, trusting a notebook and remapping connections.
- Parameters and inputs
- Typed notebook parameters with real inputs, presets, saved sets, query-filled and linked choices, Apply before re-running, and sensitive values kept private.
Analyze
- Charts, tables, pivots and KPIs
- Seventeen chart kinds with suggestions, formatted tables, pivots and KPI scorecards, click-to-filter, and where every chart's data came from.
- Formulas and transforms
- Formula cells that compute one value from earlier results, and no-code transform steps that run on downloaded rows in the notebook's local SQL.
- Profiles, tests, diffs and plans
- Profile a result, test it with checks that show their evidence, compare results and runs, and read, compare and time query plans.
- Run history and snapshots
- Every run recorded with its parameters and outcomes, pinned snapshots kept encrypted, and run comparisons that say what changed and why.
- Local data with DuckDB
- The notebook's own DuckDB workspace: run SQL on local data, materialize results, join across connections, attach files, encrypt it, and manage saved results.
- The AI notebook agent
- AI cells that plan, build, investigate and review with labelled evidence, budgets and consent, and the things the agent can never do.
Share and present
- Dashboards and presentation
- Arrange results on a 12-column dashboard, bind a filter bar to parameters, view it without SQL, and present it full screen.
- Embedded outputs and report-style notebooks
- Show a cell as its output alone so a notebook reads like a report, keep pivot and chart settings beside it or hidden, and lock a result grid to rows, pivot or chart.
- Exporting and the fidelity report
- HTML, PDF, Excel, Markdown, CSV, SVG and PNG reports with layout templates and redaction, and what each format can and cannot show.
- File format and Git
- How a .sqllynb file is laid out, why it diffs cleanly, why results stay out of it, and how to review notebook changes in Git.
- Jupyter and older notebooks
- Open .ipynb notebooks from Jupyter, VS Code and Azure Data Studio, and older .sqlnb.json notebooks, and what carries over in each direction.
- Notebooks in the browser
- Open, save, recover and export notebooks in the browser build of SQLly, and which notebook features need the desktop app.
Automate
- The sqlly notebook CLI
- Run, validate, diff, export and inspect notebooks from a terminal or CI, with exit codes and a Git diff recipe.
- Schedules and alerts
- Run notebooks on this computer's own scheduler with retries, and get desktop or webhook alerts when a run fails or a check or KPI changes state.
Référence
- Keyboard reference
- Every notebook shortcut: running cells, command mode, selecting, copying, undoing and moving cells, find, bookmarks, presenting, and how to change them.
- Security model
- Trust, per-run checks, the encrypted result cache, the audit log, export redaction, and what a hostile notebook file cannot do.
What notebooks don't do
- No Python. Notebook cells run SQL, plus the formula, chart and analysis cells described here. A Python cell in a
.sqllynbfile is kept and saved back unchanged, but it does not run. Code cells in a Jupyter.ipynbfile open as SQL cells, whatever their language (see Jupyter and older notebooks). - No live collaboration or hosted publishing. Notebooks are local files. Share them through Git, a shared folder or an export; two people editing the same file see each other's changes only when they reload.
- Schedules run on your computer. A scheduled notebook runs only while this computer is on and signed in. There is no cloud runner. See Schedules and alerts.
- The browser build is limited. Notebooks open, run, save and export in the browser build, but the local DuckDB database, PDF and PNG exports, saved results and AI cells need the desktop app. See Notebooks in the browser.