☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Bokeh Python Button

Community Support
akshay_dhingra
akshay_dhingra

Hi,

I want to implement line break as part of bokeh python button. But somehow I’m not able to, I tried multiple things.
So basically text of my button is too long and I want to split it into two lines. Any leads would be really helpful.

Support_Bokeh

⌁   Link to post
p-himik
p-himik

You will have to implement a custom Button class that does that. The thing is, HTML removes any newlines, so you need to use special HTML constructs to bring them in. And at the same time, Bokeh’s Button escapes its label so it cannot have a working HTML.

⌁   Link to post

End of archived discussion · Replies are disabled