Is there a way to set panel defaults?

In Holoviews, you could do hv.opts.defaults(hv.opts.Area(...)); is there an equivalent in panel?

I want all my pn.Row() to have sizing_mode='stretch_width' unless otherwise specified

1 Like


But this will then be for all layouts, panes and widgets.

All Parameterized objects can have their defaults changed, e.g.:

pn.Row.sizing_mode = 'stretch_width'
1 Like