Installation#
Some common issues in installation have been written up in the FAQ.
You can install PyARPES in an editable configuration so that you can edit it to your needs (recommended) or as a standalone package from a package manager. In the latter case, you should put any custom code in a separate module which you import together with PyARPES to serve your particular analysis needs.
Installation from Source#
Using an installation from source is the best option if you want to frequently change the source of PyARPES as you work. You can use code available either from the main repository at GitHub <https://github.com/arafune/arpes>.
Install uv
Clone or otherwise download the repository
git clone https://github.com/arafune/arpes
Make a python environment according to our provided specification, and activate
cd path/to/pyarpes
uv venv (if path/to/pyarpes/.venv does not exist.)
source .venv/bin/activate (Activation way depends on your shell.)
uv sync
Recommended: Configure IPython kernel according to the Barebones Kernel Installation below. Especially, to use pyarpes on JupyterLab,
python -m ipykernel install --user --display-name "My Name Here"
Additional Suggested Steps#
Install and configure standard tools like Jupyter or Jupyter Lab.
Explore the documentation and example notebooks at the documentation site.
Barebones kernel installation#
If you already have Jupyter and just need to register your environment. You can do
pip install ipykernel
python -m ipykernel install --user
You can also give the kernel a different display name in Juptyer with
python -m ipykernel install --user --display-name "My Name Here".