[p for p in range(2, 130) if isprime(2^p - 1)][2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127]
Quarto ≥ 1.9, because engine extensions do not exist in earlier versions.
ER2, from PyPI, with its er2 command on your PATH:
For figures, install Matplotlib in the same environment:
Windows: ER2 cannot be installed natively yet, because its PARI bridge, cypari2, has no Windows build. Run Quarto and ER2 inside WSL instead.
In the directory of your document or project:
Or clone the repository and run ./install.sh, which checks the prerequisites first and says exactly what is missing (./install.sh --check only reports).
That cell, run here:
The engine runs your cells with the Python ER2 is installed in. It uses, in order:
er2: python: in the document’s front matter;ER2_PYTHON environment variable;er2 command on PATH — read from the first line of that script, which is where uv tool install, pipx and pip record it;python3.If that Python cannot import er2, the render stops and says how to fix it.
ER2 also runs in Quarto through its Jupyter kernel (jupyter: er2, with ```{python} cells). Use that route when you want your editor’s Python tooling inside cells, or need to mix languages; use this engine when you want the source to say ```{er2} and no Jupyter at all. See How it works.