quarto-python

May 5, 2025 ยท View on GitHub

Python interface to the Quarto CLI (https://quarto-dev/quarto-cli).

theme helpers

quarto-python contains theme helpers to do basic background/foreground theming of plots and tables

The theme_colors_* functions take background and foreground colors:

parameterdescription
bgbackground color
fgforeground color

The theme_brand_* functions take a brand.yml file:

parameterdescription
brand_ymlpath to brand.yml file

Available theme helpers:

colorsbrand
theme_colors_altairtheme_brand_altair
theme_colors_bokehtheme_brand_bokeh
theme_colors_great_tablestheme_brand_great_tables
theme_colors_matplotlibtheme_brand_matplotlib
theme_colors_plotninetheme_brand_plotnine
theme_colors_plotlytheme_brand_plotly
theme_colors_pygaltheme_brand_pygal
theme_colors_seaborntheme_brand_seaborn

The usage of the returned object or function depends on the package. See this repo for usage examples:

https://github.com/quarto-dev/quarto-examples/tree/main/renderings