Unofficial OpenMined theme for Altair, following the OpenMined brand guide.
See here for more information on defining custom themes for Altair.
- Clone this repo to create a local copy of the theme.
- Download the
PT Mono
andOverpass
fonts - In your notebook / code import the
openmined
function from openmined_theme.py- This function returns the theme spec
- Register the spec function as an Altair theme
alt.themes.register("openmined", openmined)
- Enable the theme
alt.themes.enable("openmined")
- Use Altair as normal
See the notebooks for example usage.
This repo provides a conda environment with all required packages.
With conda installed, run conda env create -f environment.yml
to create the conda environment,
called om-altair-dev
.
This repo is released with an Apache 2 license. See the license for more information.