Skip to content

TTitcombe/OpenMined-Altair-Theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenMined Altair Theme

Unofficial OpenMined theme for Altair, following the OpenMined brand guide.

See here for more information on defining custom themes for Altair.

How to use

  1. Clone this repo to create a local copy of the theme.
  2. Download the PT Mono and Overpass fonts
  3. In your notebook / code import the openmined function from openmined_theme.py
    • This function returns the theme spec
  4. Register the spec function as an Altair theme
    alt.themes.register("openmined", openmined)
  5. Enable the theme
    alt.themes.enable("openmined")
  6. Use Altair as normal

Example usage

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.

License

This repo is released with an Apache 2 license. See the license for more information.

Releases

No releases published

Packages

No packages published

Languages