PyEQSP: Python Equal Area Sphere Partitioning Library
PyEQSP requires Python 3.11 or later. We recommend using a virtual environment to manage dependencies locally.
The easiest way to install PyEQSP is via pip from PyPI. Because the current PyPI releases are beta pre-releases, you must specify the --pre flag:
pip install --pre pyeqspTo install with development and testing dependencies (recommended for reproducing research):
pip install --pre "pyeqsp[dev]"Using a virtual environment prevents version conflicts between your scientific projects.
# Create a hidden environment directory
python3 -m venv .venvs/.venv
# Activate it
source .venvs/.venv/bin/activate
# Install PyEQSP in the environment
pip install --pre pyeqsp(venv-sys-setup)=
While 2D illustrations work with standard Matplotlib, 3D interactive visualizations require PyVista.
pip install --pre "pyeqsp[pyvista]"PyVista supports both interactive GUI windows and headless off-screen rendering for CI environments or Jupyter notebooks:
export PYVISTA_OFF_SCREEN=truePyVista integrates with Jupyter Notebooks for interactive 3D rendering:
pip install trame ipywidgetsIf PyVista fails to open a window:
- Verify
echo $DISPLAYis set (or setexport PYVISTA_OFF_SCREEN=truefor headless environments). - Try running
python3 tests/src/inspect_visualizations.pyto verify PyVista rendering.