Skip to content

pyhf/pyhf-tutorial

Repository files navigation

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 build

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