This tutorial provides a set of examples that illustrate the main features of the PDG Python API. Comprehensive documentation is available at https://pdgapi.lbl.gov/doc/pythonapi.html.
If one would want to ensure that any dependencies are installed in a self-contained environment, first create a new Python virtual environment and then activate it:
python -m venv ~/pdg.venv
source ~/pdg.venv/bin/activateNow install the PDG Python API package pdg (if you dont care start with this):
pip install pdgIn order to run the examples in this notebook, some additional packages are required:
pip install numpy matplotlib jupyterYou can now launch a Jupyter session (jupyter lab) or do it in VSCode and open this notebook. I expect everybody to know they handle a notenbook like this.