I’m trying to use the custom_css property introduced here: https://github.com/bokeh/bokeh/pull/5503. I have Bokeh 12.5.
I tried to follow this example from here: http://stackoverflow.com/questions/40981485/is-there-a-way-to-format-the-widgets-contents
No matter what I do, the CSS doesn’t seem to affect the table I’m creating for my div widget. The formatting stays the same.
My exact code is:
jtext = “”"
t = Template(jtext)
html = t.render(df=output)
recDiv = Div(text=html)
recDiv.css_classes = [“rectable”]
I suspect I am not putting the css in the right place. I am putting it in my general css file for the page. Where exactly does the css go?
Any other help is appreciated. This feature isn’t documented very well, understandably since it is new.
Before anyone asks, I did try the data table widget but I don’t like how it presents the table (forcing each column to have the same size).