Skip to content
PYGWALKER
API Reference
Appearance

PyGWalker Appearance

Use appearance to choose light, dark, or operating-system matched rendering. The default is appearance="media".

import pygwalker as pyg
 
pyg.walk(df, appearance="dark")

Appearance values

ValueBehavior
"media"Follow the operating system color scheme. This is the default.
"light"Force light appearance.
"dark"Force dark appearance.

Some notebook themes do not match the operating system theme. If PyGWalker appears dark inside a light notebook, force the desired appearance:

pyg.walk(df, appearance="light")

Theme key

theme_key selects the renderer theme family.

ValueNotes
"g2"Default for most APIs.
"vega"Common default for the programmatic component API.
"streamlit"Available where the adapter supports Streamlit-themed rendering.
pyg.walk(df, theme_key="g2", appearance="media")

Related Guides