I would like to customize a button with CSS, and I found css_classes attribute in the Button constructor, but I don’t know how it works.
I tried this ( [Anthonydouc] answer): python - Change colour of Bokeh buttons? - Stack Overflow but I don’t want to override the Bokeh built in CSS. Is it possible to provide my CSS classes to the widget?

Any values you specify in css_classes will be added to the class attribute of whatever the top-level DOM element of the widget so. So, if you embed your content in an HTML page, you can target the CSS of the widget by adding entries in your own style sheet. There is a complete example here:

bokeh/ at branch-2.4 · bokeh/bokeh · GitHub

1 Like