Bokeh Python Button


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.


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.