Notebooks in the browser
功能的Open, save, recover and export notebooks in the browser build of SQLly, and which notebook features need the desktop app.
The browser build of SQLly (the live preview, SQLly Embedded,以及 中继代理模式) is the same app compiled to WebAssembly, and it opens, runs, saves and exports notebooks too. A browser page can't touch your disk freely or keep a private database, so a few things work differently or need the desktop app. This page lists them.
Opening and saving
- Open. File ▸ Open Notebook… picks a
.sqllynb,.sqlnb.json或者.ipynbfile from your computer (up to 32 MB). SQLly keeps a copy in the browser: "Opened revenue.sqllynb. A copy is kept in this browser." - Save. Save always updates the browser's copy. In Chrome and Edge, which let a page write back to a file you picked, it also writes the file on your computer (the browser asks for permission the first time). In other browsers, 另存为 downloads the notebook: "Downloaded revenue.sqllynb. A copy is kept in this browser, and Save keeps it up to date."
- After a reload. The page forgets which file on your computer it was writing to; Save keeps updating the browser copy, and Save As picks the file again.
- Recovery and recent files. Unsaved notebooks keep a recovery copy and come back after a reload, the recent-notebooks list works, and if another tab saves the same notebook this one shows Changed on disk; Save then waits until you choose 重新加载 或者 Keep mine, so one tab never silently overwrites the other.
The copies live in the browser's own storage for this site (the origin private file system, or IndexedDB where that isn't available). If the browser refuses storage, for example in some private windows, SQLly says so: "This browser isn't letting SQLLY keep data, so it's kept only until you close this tab." Clearing the site's data in your browser deletes the copies.
Trust
Trust works as on the desktop: a notebook from elsewhere opens behind the trust banner and runs nothing until you trust it and choose its connections, and every file goes through SQLly's safety check when it opens. Trust records are kept in the browser, per browser profile, so trusting a notebook in one browser doesn't trust it in another or on the desktop.
The live preview is served from sqlly.app itself, so its stored notebooks and trust records share the browser storage of the whole site. Treat trust in the preview as a convenience, not a security boundary; for notebooks from people you don't know, use the desktop app.
What runs
SQL cells run against the connections the page has (the demo databases in the live preview, your relay's or Embedded bridge's connections), and Markdown, parameters, charts, tables, pivots, KPIs, formulas, profiles, tests and diffs work as on the desktop. Plan cells follow the engine's usual plan support.
These cells are marked 不可用 as soon as the notebook opens, with the reason, and cells that read them wait instead of failing:
| Cell | 为什么 |
|---|---|
| SQL cells on Local (this notebook) | The notebook's DuckDB database is desktop-only. |
| Transform cells | They run in the local DuckDB database. |
| Attachment cells | They import files into the local database. |
| AI cells | "AI cells run in the desktop app." |
运行历史
Runs are recorded and listed in the History tab, and Compare runs works. Cell results of past runs and pinned snapshots aren't kept in the browser, because SQLly keeps them encrypted and the browser has no keychain it can use for that; the History tab says so.
导出
The browser has no separate Export window, so the notebook's 导出 menu lists each format and downloads the file straight away, with the dialog's default settings and the current results: web page (HTML), Excel workbook, Markdown (with chart images embedded, as one file), CSV (one file per table), SVG (one per chart), a SQLLY notebook copy and a Jupyter notebook. Redaction works as on the desktop; when it finds sensitive data, the first click says what will be left out, and choosing the same export again downloads it. PDF and PNG need the desktop app. A chart cell's Export SVG downloads; Export PNG doesn't.
Exports that write several files download them one after another; your browser may ask once whether to allow multiple downloads.
Also desktop-only
- The notebook's local data, materializing results, attachments and transforms (above).
- Saved cell results (the encrypted cache) and the results of past runs.
- Storing secrets for secret parameters ("Secrets can only be stored in the desktop app.").
- The notebook audit log.
- 这
sqlly-clirunner and schedules.