Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 2.54 KB

File metadata and controls

78 lines (52 loc) · 2.54 KB

pyhf Tutorial

The tutorial is based off of pyhf v0.7.6

Binder JupyterLite DOI

Deploy Jupyter Book pre-commit.ci status

Setup

Using pixi (recommended)

On any x86 Linux machine or any macOS machine first install pixi and then from the top level of the repository run

pixi install --environment book

Using a manually controlled virtual environment

In a Python virtual environment run the following

python -m pip install --require-hashes --requirement book/requirements.lock

Build

To build the book after setup simply run

Using pixi

pixi run start

to build and serve the book

Local virtual environment

make build

Build lock file

To build a uv pip compile lock file for local use nox

nox

To build a lock file for deployment use Docker to avoid differences between operating systems with

bash lock.sh

or

nox --session docker

Past tutorials