Set TabPanel text size


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

However on a TabPanel the title attribute is a string.

Does anyone know how to do this ?



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


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.