# Sagebrush > Python 3.14 compiled to JavaScript, running entirely in the browser (no server; numpy's heavy kernels and the Sagebrush math engines are small WebAssembly modules). sagebrush.space is a small notebook for it; a Sage mode adds `^` as a power, exact rationals (`2/3`), number theory functions (`factor`, `is_prime`, `next_prime`, `divisors`, `euler_phi`, `crt`, ...), and modular forms and elliptic curves (`ModularSymbols`, `CuspForms`, `DirichletGroup`, `EllipticCurve`) computed by Sagebrush's Rust engines, printed as Sage prints them. Links here are relative to the site serving this file (sagebrush.space, or dev.sagebrush.space for the development site). ## How code runs (read this first) Sagebrush notebooks are **reactive, but they are not marimo**: in Python and Sage, **a name may be defined again in a later cell**, as in a Jupyter notebook read from the top. - **Order is the page order.** A cell reads the nearest **earlier** definition of a name when there is one; if all its definitions are below it, it reads the first one. A later redefinition is a new value from that cell down. - **Editing a cell reruns what depends on it**: the cells that read the edited definition, and their own dependents, within the notebook's time budget (slow or manual cells are marked stale instead). A later definition of a name stops dependencies through that name. - Example (Sage mode, where `^` is a power; in Python mode write `**`), four cells: `x = 1`; `print(x^2)` prints 1; `x = 17`; `print(x^3)` prints 4913. Change the first cell to `x = 2`: the edited cell and `print(x^2)` run (it prints 4); `print(x^3)` does not rerun: it still reads `x = 17` and shows 4913. - A **board** runs its code items the same way, in its reading order (top to bottom, then left to right; a group's items together). - **For agents:** don't rename an ordinary Python or Sage variable (`x2`, `x_new`) just because it is redefined, and don't refuse such a redefinition. But if the notebook does report an error, heed it: a few redefinitions can't be scoped this way (some decorator, class or quoted-annotation cases, and Magma and MATLAB code), and those are real multiple-definition errors. ## Using the page - Cells run in a Web Worker in the visitor's browser; variables persist between cells. The Console (an interactive prompt in the ⋯ menu) is a separate, fresh session: it doesn't see the notebook's variables. - Cells are code or Markdown (text with headings, lists, tables, links, images and LaTeX math `$...$`/`$$...$$`, rendered with KaTeX), as in Jupyter; the WebMCP tool `add_markdown` adds one. - The ⋯ menu's **Help** group contains Keyboard shortcuts, How cells run, Notebook tips, About Sagebrush, llms.txt (for agents) and Support. - Notebooks and their output are saved in the browser (IndexedDB) as you work; File opens, duplicates, deletes, downloads and uploads `.ipynb` (and `.py`). Python's `open()`, `os.listdir` etc. work on files kept in the browser; the Files panel uploads, downloads and deletes them. - Examples: File > Examples… (also New > Examples…) opens the examples gallery (/examples/: notebooks, boards and LaTeX documents, each with a preview); Open a copy puts one into your workspace, in a new folder of its own, inside the Examples folder of your files. - A notebook can be put in the URL, as File > Share does: `/#z=`, each cell a string of code or `{"md": ""}`; `/#c=` works too. Add `m=sage&`, `m=magma&` or `m=matlab&` before `z=` or `c=` for that language (Python otherwise): `/#m=sage&z=...`. Nothing runs on open: the person (or an agent through the page's tools) presses Run all. In Python, `z` is `base64.urlsafe_b64encode(c.compress(data) + c.flush()).rstrip(b"=")` with `c = zlib.compressobj(9, zlib.DEFLATED, -15)` and `data = json.dumps(cells).encode()`. - numpy: the NumPy 2 API (ndarray, ufuncs, random, linalg, fft, polynomials), checked against NumPy itself: same printed output and the same seeded random numbers. - IPython's magics in cells: `%matplotlib inline`, `%load_ext autoreload` with `%autoreload 2` (your modules reload when their files change; classes are updated in place, but an old function kept in a list, closure or default keeps its old code, and a class using `super()` without arguments is not updated, with a message), `%time`, `%timeit`, `%%time` and `%%timeit` (wall time only). Every other magic is an error, and so are shell commands (`!cmd`) and `%pip`: nothing can be installed. - Sage mode syntax (as Sage's preparser): `^` power, `^^` xor, exact `2/3`, `[1..10]`, `[1,3..99]`, `(1..)` iterators, reals print as Sage's RR (`1.5` -> `1.50000000000000`), `100r` raw ints, Integer methods on ints (`12.factor()`, `(2^64-1).divisors()`), `R. = ZZ[]`, `R.0`, `f(x) = x^2 + 1` (prints `x |--> x^2 + 1`). Not yet: `type(1)` is `int`. - Symbolic calculus (Sage mode, Sagebrush's own engine, printed as Sage prints): `var('x y')`, `diff`, `expand`, `factor`, `.simplify_full()` (a method, as in Sage: there is no global `simplify_full`), `taylor`, `series`, `limit(f, x=a, dir='+')`, `solve`, `integrate(f, x)` / `integrate(f, x, a, b)` (antiderivatives verified by differentiation), `integrate_steps(f, x)`, `numerical_integral`, `desolve(de, y, ics=[...])` with `y = function('y')(x)`, `desolve_rk4`; `show(expr)` typesets. - Magma mode (the Language menu, or a share link with m=magma): Magma programs translated to Python in the page: `x := 5;`, `print x;`, `f := function(n) ... end function;`, procedures with `~x` reference arguments, `[ e : x in S | cond ]`, `[1..10 by 2]`, `&+`, `select`, 1-based sequences with value semantics, sets, tuples, exact rationals, reals to 30 digits; intrinsics for integers (Factorization, IsPrime, Divisors, Xgcd, ...), sequences and sets, polynomials (R := PolynomialRing(Integers()); Factorization, Roots), ModularSymbols, HeckePolynomial, CuspidalSubspace, NewformDecomposition, CuspForms, Newforms (rational), EllipticCurve, TraceOfFrobenius, Rank, TorsionSubgroup. Output matches Magma's (checked by magma-tests/ against Magma itself). WebMCP run_python takes magma=true. - Modular forms and elliptic curves (Sage mode): `ModularSymbols(N or character, k, sign).hecke_polynomial(p)` (exact and proven), `CuspForms(N, k).dimension()`, `Gamma0(N).dimension_new_cusp_forms(k)`, `DirichletGroup(N)`, `EllipticCurve([a1,a2,a3,a4,a6] or a Cremona label of conductor < 1000)` with `.ap(p)`, `.aplist(n)`, `.anlist(n)`, `.rank()`, `.torsion_order()`, `.conductor()`, `.sato_tate_moments(n)`. `Newforms(N, k)` and `CuspForms(N, k).newforms('a')` (as Sage prints them, when every coefficient is rational) and `newform_orbits(N, k)` (every Galois orbit: LMFDB label, dimension, trace form, `.charpoly()`). Polynomials (Sage mode): `R. = ZZ[]` or `PolynomialRing(QQ, 'y')`, with `.factor()` (Zassenhaus in Rust), `.roots()`, `.is_irreducible()`, `gcd`, `.resultant()`, `.discriminant()`, `.derivative()`, `quo_rem`. The engines directly: `from sagebrush import modsym, ap, mf` (the API of the native package). - Plots: matplotlib.pyplot (a subset; figures show when a cell ends) or Sage's plot/point/line/contour_plot/implicit_plot/plot_vector_field/plot_slope_field/... in Sage mode, and 3D (`plot3d`, `parametric_plot3d`, `implicit_plot3d`, `sphere`, ...: an interactive WebGL view plus an SVG with a description); `@interact` (Sage) or `from ipywidgets import interact` adds live controls; Sage's `animate` and `matplotlib.animation.FuncAnimation` make animations (animated SVG). Every plot is an SVG with a text description. - Finding functions: /docs-index.json is every public function of the Sage library with its signature and docstring (tested examples; `OPEN PROBLEM:` sections mark open problems); the page's search box (key `/`) searches it, as does `search_doc("words")` in Sage mode, `sagebrush --search words` from a shell, and the MCP tool `search_docs`. /docs-index-python.json is Python mode's: what Sagebrush has of numpy, scipy and the standard library, with examples whose output matches CPython, NumPy and SciPy (`sagebrush --search words --mode python`). In a cell `name?` shows a function's documentation, `name??` its source. - A PDF of a LaTeX file: open the `.tex` in the LaTeX editor (`/?tex=`) and use its preview's **Print / Save as PDF** button (the browser's print dialog: the rendered preview only, with math and figures). Sagebrush renders LaTeX as a web page; it has no LaTeX-to-PDF compiler. From script in the page, `window.sagebrush.latex.print()` opens the same dialog; a browser an agent drives (for example over CDP) calls `window.sagebrush.latex.printMode(true)`, prints to PDF itself (`Page.printToPDF`), then `printMode(false)`. - In-browser agents: the page registers WebMCP tools `search_docs` (search the documentation of every language, whatever the notebook's: Sage, Python, Magma, MATLAB; a result of another language is marked, e.g. `[Sage]`, and `language` narrows it to one), `run_python` (run code as a new cell; returns its output, plot descriptions and plots as PNG images), `read_notebook` (cells and outputs as JSON) and `set_interact` (change an interact's controls and get the new output). ## Boards A board is a JSON file (`*.board.json`) of notes with Markdown and math, live code, groups laid out for you, labeled edges, pages or slides and a guided tour. You give the structure, and the board does the layout. Open a board at /board/ (its menu's Open…, or drop the file on the page); a page that embeds a board uses https://sagebrush.space/frame/board/ (absolute: the page is on another site). - [The board format](/board-format.md): the header `{"format": "sagebrush-board", "version": 1}`, a complete small example, the fields with their defaults, pages, slides and templates, `mode`, pictures, how to check a board, and a dated "What's new" list. Read it before writing a board; the format grows. - To ask your user things (decisions, preferences), give the board a page of questions: items of `"kind": "ask"` with checkboxes, radio buttons, a list, a text, a number or a scale (see "Asking the reader" in the board format). Every question can also be answered in the user's own words (`note`), which counts as an answer: read it whenever it is there. The answers are kept in the board; `sagebrush board answers FILE --json` (from the next release) reads them. - To teach, give a question a `check` (Python or Sage code; its last line is True, False or a message, with the reader's answer as `answer`; it sees the board's names, and the board's code runs again after it), `hints` shown one by one after wrong attempts, and `next` (`{"right": id, "wrong": id}`) naming the item to go to. Give it an `example` answer and run `sagebrush board try FILE --json` (from the next release) to see each check's verdict and hints before you publish it. - Before you hand a board over, run each code item with the command line below in the board's language. An unimplemented function raises an error, so code that runs is supported. Then open the board to see its layout: at /board/, or on the user's computer with `npx sagebrush@0.10.1 board open FILE`, which shows it in their browser, read only, and again each time you rewrite FILE. ## LaTeX and beamer Sagebrush's LaTeX editor shows a `.tex` as a web page as it is typed: no TeX installation, and no TeX-to-PDF compiler. [How it differs from LaTeX](/articles/latex/02-how-it-differs): what is supported, what isn't and what is shown instead, and how the output differs from pdflatex's. On the site, a `.tex` in the file browser opens in it (File > New > LaTeX document makes one, File > Examples… copies one; `/?tex=` opens one). In a beamer document each frame is a slide, of the class's `aspectratio`: the preview shows every overlay step at once (`\pause`, `<2->`, `<+->`, `\only`, `\uncover`, `\alt`), and **Present** shows the slides full screen, step by step (arrow keys; Escape stops). - **Check and look at everything you write**, after every change. `npx sagebrush latex check talk.tex` (`--json` for JSON) lists what the preview can't show or found wrong, each with its line: unsupported commands and environments, math KaTeX can't typeset, missing images, expansion that stopped; it exits 1 on an error. `npx sagebrush latex render talk.tex --png shots/` writes one PNG per frame (per page for other documents) and a self-contained `talk.html`: open the PNGs and look at them. Add `--steps` for one PNG per overlay step (`frame-02-1.png`, ...), as Present shows them, and `--pdf talk.pdf` for a PDF (one page per frame) to hand over or archive. A frame whose content doesn't fit its slide is reported as overflowing: shorten or split it. The PNGs need Chrome, Chromium, Edge or Brave on the computer (or `CHROME=/path/to/it`); nothing is installed. (`sagebrush latex` is new: npm `sagebrush` since 0.6.5.) In the page itself, with a `.tex` open, the WebMCP tools `latex_check` (the same report) and `latex_render` (each frame as a PNG image, overflowing frames named; `frames: [n, ...]` for some, `steps: true` for each overlay step) do the same. - What the preview draws: sections, lists, math (KaTeX), `tabular`, figures and tables with captions, `minipage` and beamer `columns`, `block`/`alertblock`/`exampleblock`, `\alert`, `verbatim` and `lstlisting`, `\textcolor`/`\colorbox`, and `\includegraphics` of a PNG, JPEG, GIF, WebP or SVG file, found as TeX finds it (relative to the `.tex` file's folder, `../` included, then `\graphicspath`'s folders, never above the workspace's top folder; `check` names the folders searched; an animated SVG plays). Not drawn: TikZ and pgfplots (a placeholder), BibTeX. - Figures from code: write them with Sagebrush itself, then include them. Python: `plt.savefig("fig.svg")`; Sage: `plot(sin(x), (x, 0, 2*pi)).save("fig.svg")`; an animation: `animate([...]).save("wave.svg")` (Sage) or `FuncAnimation(...).save("wave.svg")` (matplotlib). Run the script with `npx sagebrush fig.py` (or `--sage fig.sage`), put `\includegraphics[width=\textwidth]{fig.svg}` in the frame, and render again to see it. - Code in the document (SageTeX): `sagesilent` and `sageblock` blocks, `\sage{expr}` (its LaTeX) and `\sageplot[width=.6\textwidth]{plot(...)}` (the plot), with Sage's syntax, in one Sage session in document order. `npx sagebrush latex run talk.tex` runs them and keeps the results in `talk.tex.results.json` beside it; `check` and `render` (and the editor) then show them. A result counts while its code and all code before it are unchanged: after an edit, run again. A failing item is reported with its line and traceback, and stops the ones after it. Write, `run`, `check`, `render --png`, look. ## Terminal ⋯ ▸ Terminal opens a bash shell on this workspace's files, in the browser; on a LaTeX or code file's page, the Terminal button in the page's own bar opens it. ✕ closes it and keeps the session. While a session is open (or a computer is set up for Terminal on your computer…), ⋯ ▸ Terminal becomes a group, and ⋯ ▸ Terminal ▸ End terminal session… ends the session; on a LaTeX or code file's page, File ▸ End terminal session… does. The Terminal keeps your last 500 commands and the current folder in this browser only, for this workspace. A command that starts with a space or a tab isn't kept. Commands are kept as you typed them, so a password typed on a command line is kept too: start that command with a space. End session clears them. `more` and `less` page output in two forms only: `CMD | more` (or `| less`) at the end of a line, and `more FILE` (or `less FILE`) typed on its own. Any other use, such as with options, inside `( )`, in a script or after `xargs`, isn't supported yet and says "command not found". The Terminal is Sagebrush's own shell in your browser, not a full Unix system. Errors print after a command's normal output; use `cmd 2>&1` to see them in order. Type `help` in the Terminal for the list of commands it has (`compgen -c` prints just their names). Type `python`, `sage`, `matlab` or `magma` alone in the Terminal for that language's own prompt, in a session of its own (not any notebook's) with your workspace's files: Ctrl+D or `exit()`/`quit()` (MATLAB's `exit`, Magma's `quit;`) leaves it, and Ctrl+C interrupts the statement running. To run a file, as an agent does, give it as an argument: `python file.py`, `sage file.sage`. ## Languages Each board, notebook or command uses ONE language. Each language is a SUBSET of its real ecosystem, so check before you rely on anything: search for it, then run it. A search result's status says how much of a function Sagebrush has: full (Works), partial (Partly: `differs` says what doesn't work) or absent (Not yet: `alternative` says what to use instead). To ask for something missing or partial, open its `request_url`: `sagebrush --search ... --json` and the MCP `search_docs` give one with each such result, and a search with no match prints one. The page's search box, and its WebMCP `search_docs` tool, also list the names the real system documents that Sagebrush lacks, as Not yet, after every documented result. In the page's search box and its WebMCP `search_docs`, a query that names an area ("linear algebra", "elliptic curves") starts with that area's line: its status and its evidence, and for a public corpus the date and commit it was measured at. Give the link to the person, or file it yourself with `gh issue create --repo sagemathinc/sagebrush --label coverage-request`. The link opens a public GitHub issue. - **Python** (the default): Python 3.14 compiled to JavaScript. It includes numpy (the NumPy 2 API), parts of scipy, a subset of matplotlib.pyplot, ipywidgets and a subset of the standard library (math, fractions, itertools, functools, collections, random, json, re, ...). Many standard modules are missing, among them typing, dataclasses, decimal, asyncio, subprocess, socket, sqlite3 and logging; so are pandas, sympy and anything installed with pip, apart from the curated packages below. - **Curated PyPI packages**, pure Python, pinned and imported on first use in Python and Sage mode: `mpmath` 1.3.0, `sortedcontainers` 2.4.0 and `tabulate` 0.8.9. Supported upstream tests pass as CPython does; package-specific known differences and explicitly excluded optional surfaces are recorded with reasons. - **Sage** (`"mode": "sage"`, `--sage`): Sage's syntax and a growing part of its library (number theory, symbolic calculus, polynomials, number fields with proven class groups, modular forms, elliptic curves, plots), on Sagebrush's own engines. Output is printed as Sage prints it. - **Magma** (`"mode": "magma"`, `--magma`): Magma programs translated to Python: a growing subset of Magma's syntax and intrinsics, including records and the supported constructor forms. Supported cases are checked against Magma 2.18, run as a black box; much of Magma is not there yet. - **MATLAB** (`"mode": "matlab"`, `--matlab`): MATLAB programs translated to Python, written from MATLAB's public documentation and checked against GNU Octave and published examples. It covers matrices, numerics and plots. - **Limits, by design:** - a board's code runs in the reader's browser, in a sandbox with no network and no storage that outlasts the page, within that tab's memory and time: keep each code item quick; - a notebook's code runs in the browser too, and its files are kept in the browser's storage (see "Using the page"); - the command line runs as an ordinary local process, as you. ## Python libraries: the same API, with confirmed upstream bugs fixed Sagebrush has its own code for these libraries. It keeps each library's API: its names, arguments, results and printed output. - NumPy: the NumPy 2 API, checked byte for byte against NumPy 2.5.1. - SciPy, in part: `scipy.integrate`, `scipy.optimize`, `scipy.special`, `scipy.stats` and `scipy.io`'s MATLAB files (`loadmat`, `savemat`, `whosmat`), checked against SciPy 1.18.1. - Subsets of matplotlib.pyplot (following matplotlib 3.10.0), ipywidgets (8.1.0), k3d (2.16.0) and marimo, and IPython's magics, written to their APIs. sortedcontainers and tabulate are different: they run the packages' own Python code (see "Curated PyPI packages" above). So does mpmath, with its arithmetic and elementary functions in Sagebrush's own multiprecision core; moving the rest of mpmath onto that core is under way. The rule for the libraries Sagebrush rewrites: - **The same API, not the same bugs.** A bug confirmed in the library's own issue tracker is fixed in Sagebrush as it's found, not reproduced. - **Every such difference is recorded.** Each fix names its upstream issue and has a test showing the library's result and Sagebrush's. A difference without that record isn't a fix: it's a known difference, listed with its reason, or a bug in Sagebrush. ## Command line - `npx sagebrush@0.10.1` (Node 22+, installs in seconds) runs Python, `--sage`, `--magma`, `--matlab`, and `--search "words"`. - `npx sagebrush@0.10.1 --sage -c 'print(factor(2^32+1))'` runs one command; `npx sagebrush@0.10.1 --search "elliptic curve rank" --json` searches the documentation. - `npx sagebrush@0.10.1 board check FILE` checks a `.board.json` before anyone opens it (the format, ids, edges, pictures, questions) and runs its code items, reporting every problem at once; `board render FILE -o board.svg` draws it. - `npx sagebrush@0.10.1 board open FILE` shows a board in the browser on this computer, as /board/ does, read only, and shows it again in place each time FILE changes (a version that isn't a board leaves the last good one shown, with what is wrong). It listens on 127.0.0.1 only, and nothing of the board is uploaded. ## MCP server (for AI agents) - Every way a person connects an agent to Sagebrush, in full (what each needs, what it touches, what isn't there yet): [/agents/connect.md](/agents/connect.md). The page for people, /agents/connect/, gives only the three choices and one command each. - `sagebrush-mcp` is a local Model Context Protocol server over stdio, for any agent that speaks MCP (Claude Code, Codex, Cursor, ...). It needs no account and no login. It comes with the Python package: `pip install sagebrush` (Python 3.10+) installs it, or `uvx sagebrush-mcp` runs it without installing. - The npm `sagebrush` command line has no `mcp` command; the MCP server is the Python package's `sagebrush-mcp`. - Claude Code: `claude mcp add sagebrush -- sagebrush-mcp`. Codex: `codex mcp add sagebrush -- sagebrush-mcp`, which writes `[mcp_servers.sagebrush]` with `command = "sagebrush-mcp"` to `~/.codex/config.toml`. Other clients: `{"mcpServers": {"sagebrush": {"command": "sagebrush-mcp"}}}`. - Its tools: - `sage`: Sage code in a persistent session (`2^10` a power, `1/3` exact); returns printed output, the last value and SVG plots. `python`: plain Python in the same session. `reset`: a fresh session. - `guide`: what Sagebrush implements, with examples. `search_docs`: the Sage library's documentation (signatures, docstrings). - `factor`, `number_field`, `newforms`: integer factorization, number field invariants, and the Galois orbits of newforms of level N and weight k. - `run_status`, `run_result`, `run_cancel`, `run_list`, `run_keep`: long computations as runs, waited for, cancelled and kept. - `workspace_connect` pairs the agent with the person's open Sagebrush page (a one-time link they click); then `workspace_list`, `workspace_stat`, `workspace_read`, `workspace_write`, `workspace_create`, `workspace_mkdir`, `workspace_rename`, `workspace_duplicate`, `workspace_remove` (to Trash), `workspace_restore`, `workspace_history` and `workspace_version` act on their workspace, and `workspace_git_branch` makes the agent a branch of its own to work in: a copy of what it may read, in the workspace's Branches folder, which only it may change, under the grant it made the branch with. `workspace_git_commit` keeps the branch's state as a commit in its history, and can ask the person to review it; `workspace_git_status` reads the person's decision on each file, with their reasons; `workspace_git_wait` waits for that decision. Only the person accepts or rejects. - `chat_next`, `chat_reply`: the page's chat panel. `latex_comments_list`, `latex_comments_show`, `latex_comments_add`, `latex_comments_reply`, `latex_comments_resolve`, `latex_comments_reattach`: comment threads on a `.tex` in the workspace. - The in-page WebMCP tools above (`search_docs`, `run_python`, `add_markdown`, ...) are a different thing: they are offered by the open page to an agent driving that browser. ## Elsewhere - [Sagebrush Atlas](/atlas/): Galois orbits of newforms (weight 2, level <= 1000; weights 4-12 with N k^2 <= 4000) proven by the Sagebrush engines, LMFDB labels, every page also JSON, other spaces computed in the browser; formats in [atlas/llms.txt](/atlas/llms.txt). - [Blog](/blog/): posts about Sagebrush, newest first, with an [Atom feed](/blog/feed.xml) - [Articles](/articles/): how the engines are implemented, algorithm by algorithm (what worked, what did not, why), starting with [Gröbner bases and multivariate polynomials](/articles/groebner/): sparse elimination mod p, F4, Gröbner bases over Q and their proofs, FGLM, gcd and factorization; sources in articles/ of the repository. For choosing a tool: each series index has a section "Is it fast enough to choose?"; in short, on one core the engines take about 1-2x the time of the fastest implementations measured (Magma, msolve, PARI, smalljac, FLINT, GMP), often less with threads, with the known worst cases named (e.g. Groebner bases modulo p: 2-5x), and results over Q are proven by default. Independence: Sagebrush contains and links no code from Magma, PARI, Sage, Singular, GAP, FLINT, GMP, msolve, eclib or smalljac (they are used only as test oracles and benchmarks; big integers are dashu, not GMP), so a result that agrees with one of those systems is confirmed by an independent implementation; details at /articles/#independent and NOTICE.md. - [The notebook as a component](/embed/): `https://sagebrush.space/sagebrush-notebook.js` (absolute: the embedding page is on another site) exports `createNotebook(element, {kernel, mode})`, `WorkerKernel` (Sagebrush in a Web Worker), stores (`MemoryStore`, `IdbStore`; anything with `load`/`save`/`subscribe`) and `.ipynb` conversion; changes from elsewhere are applied by cell id. API: web/notebook/README.md in the repository. - [This deploy's version](/version.json): JSON `{core, built, engine, build, latex, latexMode}`: the core commit (40 hex) and build time of the code this site runs now, its engine's and library's ids, whether the LaTeX editor is built, and how (`shipped`, `test` or `off`). Never cached. - [Source code](https://github.com/sagemathinc/sagebrush): the pyjs compiler and runtime, and the Sagebrush Rust engines for research mathematics. - [Command line](https://get.sagebrush.space/install.sh): `curl -fsSL https://get.sagebrush.space/install.sh | sh` or `npx sagebrush` (`--sage` for Sage syntax). - [npm: sagebrush-web](https://www.npmjs.com/package/sagebrush-web): the browser build.