Cells and cell types

fonctionnel

Every kind of cell a notebook can hold, what each one is for, and where its guide is.

Every cell has a kind. SQL and Markdown are the core; the rest read another cell's result and do something with it, without sending a query of their own unless they say so. Add a cell with the row of buttons under the last cell (SQL cell, Markdown cell, Chart cell and so on), with the + that appears when you hover between two cells, with A / B ou la I insert menu in command mode, or from a Markdown cell's / menu, and turn a cell into SQL or Markdown with Y / M.

SQLly
Row of add-cell buttons: SQL cell, Markdown cell, Attachment cell, Chart cell and moreRow of add-cell buttons: SQL cell, Markdown cell, Attachment cell, Chart cell and more
The add-cell row under the last cell, with one button for each kind of cell.

Cell kinds

TypeÀ quoi ça sertGuide
SQLA query on a connection, or on the notebook's local data, with its own result grid. Read-only unless you allow writes.Exécution, Connexions
MarkdownNotes, headings and links, rendered. Can show formula values and parameters with {{…}}, and an attachment cell's picture with ![caption](attachment:name). Double-click to edit.Getting started, Writing Markdown, Pictures
ParameterOne notebook parameter's input (a date picker, a dropdown, a slider) placed between other cells.Paramètres
GraphiqueOne of 17 chart kinds over another cell's result, with suggestions.Graphiques
TableA result in the results grid with saved formats, colours, computed and frozen columns and a search. Can be locked to its rows, pivot or chart view.Tables
PivotA cross-tab of another result, with its layout kept in the notebook.Pivots
KPIA row of up to eight KPI tiles, each compared with the previous period, another result or a target.KPIs
FormuleOne value computed from earlier results and parameters, such as an average order value.Formulas
TransformerFilter, join, group, pivot and reshape another result step by step, without writing SQL; runs on downloaded rows.Transforms
ProfilA card per column: types, missing and distinct values, ranges, percentiles, histograms and key candidates.Profils
TestsChecks on a result (row counts, uniqueness, ranges, patterns, drift and more) with the evidence behind each outcome.Tests
DifférenceCompares two results, a result with an earlier run or snapshot, or the same query on another connection.Diffs
Query planThe estimated or actual plan of another cell's query, plan comparison and parameter sweeps.Formules
Entity detailOne record and the rows related to it through foreign keys.Entity detail
AttachmentA CSV, Parquet, JSON, NDJSON or SQLite file imported into the notebook's local data, or a PNG or JPEG picture.Attachments
IAA question for the notebook agent, in one of six modes, with its findings, evidence and proposed changes.AI agent
Tableau de bordA 12-column layout of other cells' outputs, with sections, tabs and a filter bar.Tableaux de bord

How non-SQL cells get their data

Chart, table, pivot, KPI, profile, tests and diff cells have an Input picker listing the cells above that produce a result. They read that cell's result as it is on screen, from a snapshot of up to 100,000 rows, and say when that is not the whole result. When the input runs again they update by themselves; when the input is out of date, so are they. Profile, tests, diff and plan cells do their work when they run; charts, tables, pivots, KPIs and formulas recompute as soon as their input has a new result, without a query.

Writing in a Markdown cell

Double-click a Markdown cell (or press Entrée on it in command mode) to edit it. The editor treats the text as Markdown, not SQL: headings, emphasis, inline code, code blocks, links, lists, quotes and tables are coloured as you type, and you never get SQL keywords, table names, SQL warnings, formatting or AI SQL suggestions there. Press Échap to see it rendered again.

  • Snippets. Type / at the start of a line for the slash menu, or press Ctrl+Espace anywhere: headings, bulleted, numbered and check lists, a table, a code block, a quote, a callout, a divider, bold, italic, inline code, a link and a picture. At the start of a line you get all of them, in the middle of a line only the ones that format text. Tabulation moves through a snippet's placeholders. The slash menu also adds a new cell of any kind below.
  • Values from the notebook. Type {{ to list what Markdown can show: formula cells, each with its current value, and param.. Type {{param. to list the parameters with their current values (and start, end et end_exclusive of a date range). A sensitive parameter is listed as hidden and its value never appears in the editor; the rendered text shows dots. Other cells aren't listed, because Markdown leaves a reference to a SQL or chart cell as written.
  • Pictures. À l'intérieur ![caption](, typing attachment: (or the start of it) lists the notebook's picture attachments. See Pictures in Markdown cells.
  • Code blocks. After three backticks at the start of a line, the list offers a language (sql, json, python and others) and closes the block for you.
  • Hover. Rest the pointer on a {{…}} reference to see what it is, its current value (hidden for a sensitive parameter) and whether that value is stale, computed from partial results, or not there yet.
  • Gentle warnings. A reference to a name the notebook doesn't have, such as {{totl}} ou {{param.zone}}, a date-range part that doesn't exist, or a picture naming a missing attachment gets a dotted underline that says so. A reference to a cell that isn't a formula gets a quieter note explaining that it stays as written.
  • Lists and brackets. Entrée on a list item starts the next one (numbers count up, a checked task starts an unchecked one, a quote continues), and Entrée on an empty item ends the list. Tabulation et ⇧Tab on a list item nest and un-nest it. Typing [, (, a backtick, * ou _ adds the closing half, typing the closer steps over it, and Retour arrière between an empty pair removes both. With text selected, those keys wrap the selection, so * twice makes it bold.
SQLly
Typing {{ in a Markdown cell lists the formula value and parameters the text can show, with the formula's current value.
SQLly
Typing {{param. lists the parameters with their current values; the sensitive one says hidden.

Pictures in Markdown cells

A Markdown cell shows a picture only from an attachment cell in the same notebook. Write ![Weekly orders](attachment:trend), using the attachment cell's name or id (put the reference in angle brackets when the name has spaces: ![Map](<attachment:sales map>)). The picture is checked before it is shown (a real PNG or JPEG, at most 8 MiB and 8192 pixels on a side), it loads without running the attachment cell, and it shows only in a trusted notebook.

Every other image in Markdown, a web address, a file: path, a data: image or an attachment that isn't a picture, shows as a small placeholder and is never fetched. A notebook can't use an image to tell a server that you opened it. The same rule applies wherever notebook Markdown is drawn: embedded outputs, dashboard text tiles and tile notes.

SQLly
Markdown cell with an attachment picture and an image placeholderMarkdown cell with an attachment picture and an image placeholder
A Markdown cell showing an attachment's chart picture inline, and a web image below it as a placeholder that was never fetched.
  • Réduire a cell from its header (or O in command mode) to hide its body; the header says how many lines are hidden. Collapsing is saved in the file.
  • Move cells with the header's Move up and Move down, by dragging the handle at the left of the header, or with ⌥↑ / ⌥↓. Order matters only for reading and for Run Cells Above / Run Cell and Below: dependencies, not position, decide what runs first.
  • Select several cells avec ⇧-click, ⌘-click or ⇧J / ⇧K, and act on all of them from the bar above the cells: run, copy, cut, duplicate, move, collapse, convert, merge, bookmark or delete.
  • Copy, cut and paste cells within a notebook or into another one; pasted cells get new ids and always start read-only. Diviser a SQL or Markdown cell at the cursor and merge cells from the cell menu or the keyboard.
  • Supprimer from the header (or D D in command mode) shows an Annuler toast, and every change to the cells can be undone with Z in command mode.
  • Bookmark, fold (a Markdown heading hides its section) and pin (the output stays in a strip above the cells) from the cell menu. These are saved in the file.
  • Embed output in the cell menu (or E) shows the cell as its output alone, and Lock view keeps a SQL or table cell's grid on its rows, pivot or chart. See Embedded outputs and report-style notebooks.
  • Cells created by the AI agent carry an IA badge naming the AI cell that proposed them, and are otherwise ordinary cells.

Every key is on the keyboard reference.

Cells SQLly can't run

A cell of a kind this version doesn't know (one written by a newer SQLly), or a .sqllynb cell of kind python, shows "This … cell needs a newer version of SQLLY. It is shown read-only and saved unchanged." It never runs, nothing reads from it, and saving keeps it exactly as it was. Notebooks have no Python runtime; see what notebooks don't do.

Code cells in a Jupyter .ipynb file are different: every code cell, whatever its language, opens as a SQL cell, so a Python cell from Jupyter shows its Python text in a SQL cell and fails if you run it. See Jupyter and older notebooks.