How to control pygwalker's light and dark theme

Some pygwalker may find that their pygwalker is in dark theme while their juypter notebook is in light theme, which looks pretty strange.

It is because pygwalker follows your device theme by default, while juypter not.

You can control the theme of pygwalker with ‘dark’ parameter:

import pygwalker as pyg

pyg.walk(df, dark='light')

The default value of dark is ‘media’, which follows your system theme. You can also set it to be ‘light’ or ‘dark’ as you want.