Feedzai's theme for Altair charts.
Via pip:
pip install feedzai-altair-theme
Via Pipenv:
pipenv install feedzai-altair-theme
Via Poetry:
poetry add feedzai-altair-theme
Via PDM:
pdm add feedzai-altair-theme
Via uv:
uv add feedzai-altair-theme
import altair as alt
alt.theme.enable("feedzai")
You can find some example charts in the demo.ipynb
notebook.
Assuming uv is installed, install Python:
uv python install
Create and activate the development environment:
uv sync
source .venv/bin/activate
After implementing changes, type-check with mypy, then lint and format the code with Ruff:
mypy
ruff check --fix
ruff format
To see the changes applied to some example charts, use the demo.ipynb
notebook:
jupyter lab demo.ipynb
Once done, deactivate the development environment:
deactivate
Bump the feedzai-altair-theme version using one of the following commands, according to the Semantic Versioning specification:
uv version --bump patch
uv version --bump minor
uv version --bump major
Next, confirm you can build the package locally:
uv build
Once the changes are finished and the feedzai-altair-theme version is updated, open a PR. After the PR is merged, a maintainer will ensure a new package version is released.
To release a new version of feedzai-altair-theme, create a new (lightweight) tag from the master
branch, and a GitHub Actions workflow will take care of the rest:
git tag "v$(uv version --short)"
git tag -n
git push origin --tags
First, download the repo and move it to your environment. Then install the package with pip (or an equivalent) by pointing to the folder path and adding the necessary flags:
pip install feedzai-altair-theme/ --no-deps --no-build-isolation
This command assumes that the feedzai-altair-theme dependencies and the uv build backend are already installed in your environment. For more information about the additional flags, check the pip install documentation.
First, download the wheel (a.k.a. built distribution) and move it to your environment. Then install the package with pip (or an equivalent) by pointing to the file path and adding the necessary flags after replacing <VERSION>
:
pip install feedzai_altair_theme-<VERSION>-py3-none-any.whl
This command assumes that the feedzai-altair-theme dependencies are already installed in your environment.