Installation
Installing with pip
Thanks to the container build, installing should be as easy as
pip install pineappl
Development installation
Make a virtual environment in your favorite way (suggested: virtualenv)
virtualenv env # --system-site-packages
Activate the environment and install maturin via pip
. env/bin/activate
pip install maturin
Run maturin to compile and install the library as a python package in the current environment
maturin develop
Notebooks
To be able to edit the documentation’s notebooks in your virtual environment, you need to install the relative kernel:
# enter the environment
pip install ipykernel
python -m ipykernel install --user --name=$(basename $PWD)
And select in the notebook the kernel with the given name (notice that
$(basename $PWD)
is only a suggestion for the name, you can choose whatever
string you prefer).