Black Lives Matter. Please consider donating to Black Girls Code today.

Updating external_stylesheets via callback?

So usually you would do something like:

external_stylesheets = [‘https://codepen.io/chriddyp/pen/bWLwgP.css’]

app = dash.Dash(name, external_stylesheets=external_stylesheets)

Suppose I’d like to give users the option to pick a theme that updates the external_stylesheets, for example between dash bootstrap components dbc.themes.LUX and dbc.themes.YETI (but not both). So I’d like to be able to replace the external_stylesheets using radio item callbacks, is this possible?