☰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

Set TabPanel text size

Community Supportbokeh
pja
pja

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

⌁   Link to post
monade
monade

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.

⌁   Link to post

End of archived discussion · Replies are disabled