Installation¶
quivers requires Python 3.14 or later.
From PyPI¶
This installs PyTorch, didactic,
panproto, panproto-grammars-all,
Pygments, and the tree-sitter bindings as dependencies, along with the qvr
command. To run on a GPU, install the PyTorch build
for your platform, PyTorch 2.11 or later, before installing quivers.
Wheels for Linux on x86-64, macOS on ARM64, and Windows on AMD64 include the
compiled QVR parser. On other platforms pip builds the package from the source
distribution, which needs a C compiler (cc, Clang, GCC, or MSVC).
Check the installation:
Optional features¶
Each extra installs the dependencies of one feature that the base package does
not need. Extras combine, as in pip install 'quivers[repl,lsp]'.
| Extra | Feature | Packages it adds |
|---|---|---|
repl |
qvr repl and the Jupyter kernel |
Textual, prompt_toolkit, rich, ipykernel, jupyter_client |
lsp |
the qvr-lsp language server |
pygls, lsprotocol |
data |
data frame adapters | narwhals, scikit-learn |
diagnostics |
posterior diagnostics and trace files | NumPy, ArviZ, xarray, netCDF4 |
formulas |
R-style formulas | everything in data and diagnostics, plus formulae |
targets |
running programs transpiled to Pyro or PyMC | Pyro, PyMC, SciPy |
For instance:
The repl and lsp extras enable these commands:
| Command | Extra | What it does |
|---|---|---|
qvr repl |
repl |
Starts the REPL: a terminal interface built on Textual, or a prompt_toolkit prompt when Textual is not installed |
qvr-kernel install, qvr kernel install |
repl |
Registers the quivers Jupyter kernel |
qvr-lsp, qvr lsp |
lsp |
Runs the language server over standard input and output |
Interactive tools describes each one.
From source¶
A source build compiles the QVR parser and needs a C compiler. An editable
checkout parses with the grammar in grammars/qvr/src and rebuilds its parser
after that grammar changes. An installed wheel loads only the parser packaged
with it, for parsing, highlighting, and qvr migrate alike. If those files are
missing or do not match one another, quivers raises an error instead of using
the QVR grammar in panproto-grammars-all, which provides only the grammars of
the transpilation targets.
The dev extra adds the test and lint tools, and the docs extra adds what is
needed to build the documentation site:
Contributing describes the test tiers and the documentation build.