Set TabPanel text size

Hi,

I want to set the text size on a TabPanel so that the title bar appears with larger text.

on a figure this can be done by
f.title.text_font_size=‘10pt’

However on a TabPanel the title attribute is a string.

Does anyone know how to do this ?

Thanks

Paul

You can pass CSS stylesheets to the Tabs container:

from bokeh.models import Styles

tab_panels = [...]

tabs = Tabs(tabs=tab_panels, stylesheets=[{'.bk-tab': Styles(font_size='1.5rem')}])

The fact that the relevant CSS class is “.bk-tab” can be inferred via browser developer mode.

That did the trick,

Many thanks

Paul