Installation
Install attaviz from PyPI.
With uv
uv add attavizWith pip
pip install attavizFor choropleth maps, install the optional GeoPandas support:
uv add "attaviz[maps]"
# or
pip install "attaviz[maps]"Keep the extra in quotes so shells do not expand the brackets.
For styled tables powered by Great Tables:
uv add "attaviz[tables]"
# or
pip install "attaviz[tables]"Install both with pip install "attaviz[maps,tables]".
Requirements
- Python 3.11 or newer
- Altair 5 or newer
Dependencies (altair, pandas, pyarrow, vegafusion, vl-convert-python) install automatically.
Local development
Clone and install the dev environment:
git clone https://github.com/datapartnership/attaviz.git
cd attaviz
uv sync --all-groupsRun the project checks:
uv run pytest -q
uv run ruff check .
uv run ruff format --check .Install Quarto and just separately, then generate the documentation:
just docsThe command installs the documentation dependency group through uv and builds the site in docs/_site.