Tutorials

The notebooks below are rendered directly from the repository’s notebooks/ directory (symlinked into this folder so Sphinx can pick them up). They ship with stored outputs, so the site renders the plots the notebook author saw — myst-nb does not re-execute them during an ordinary docs build (nb_execution_mode = "off" in docs/conf.py); only CI’s nightly lane re-executes with NB_EXECUTION_MODE=cache to catch drift.

To run any notebook yourself, clone the repo and install the notebooks extra:

git clone https://github.com/CyrilPitrou/primat
cd primat
pip install -e ".[notebooks,recommended]"
jupyter lab notebooks/

Standard results

Nuclear rates

  • BBN reaction rates vs the Hubble rate — plots the tabulated rate ⟨σv⟩(T9) of any reaction in the network, with the master-grid reinterpolation overlaid, alongside the n↔p weak rates, all compared against the Hubble rate H(T) to show freeze-out.

Parameter scans

Uncertainty analysis

Note

Common conventions across the parameter-scan notebooks: a fixed MC seed (MC_SEED = 0) at every grid point so finite-sample MC bias cancels across the grid; observational constraints shown as grey bands; the baryon density Ω_b h² = 0.02242 ± 0.00014 (Planck 2018 + BAO) shown as a red vertical band; and num_mc = 500+ for publication-quality uncertainty bands (the notebooks default to 50 for speed).