Installation¶
Hedgehogs requires Python 3.10 or newer. Install the PyPI release in the Python environment used for the project.
pip install hedgehogs
uv pip install hedgehogs
uv requires a virtual environment; an existing one is sufficient.
Create a virtual environment if needed
Create and activate an environment before running the install command above.
python3 -m venv .venv
source .venv/bin/activate
uv venv
source .venv/bin/activate
See the uv installation guide if uv is unavailable.
Check the environment¶
python -c "import sys, hedgehogs; print(sys.executable); print(hedgehogs.__version__); print(hedgehogs.__file__)"
For notebooks, select a kernel from the same Python environment. Hedgehogs installs Matplotlib, IPython and Rich. DataFrame and statistical examples may need pandas, Polars, SciPy or scikit-learn for the selected workflow; see each API reference for its requirements.
The style requests Times New Roman. If it is unavailable, Matplotlib selects a fallback font. Install the intended font in the rendering environment for matching typography; Python package installation does not supply it. TeX rendering is optional and requires a working TeX installation when use_tex=True.
Continue with the first figure. A PyPI release can differ from the site's source revision.
Install from main¶
pip install "git+https://github.com/PentagonToy/Hedgehogs.git@main"
uv pip install "git+https://github.com/PentagonToy/Hedgehogs.git@main"
Replace main with a tag or commit for reproducible work.
Editable installation¶
git clone https://github.com/PentagonToy/Hedgehogs.git
cd Hedgehogs
pip install -e .
uv pip install -e .
Use editable installation when modifying the source. See the development overview for implementation and verification references.