Is there any way to the font size used in tabulator and/or the cell height?
Would like to reduce both to be approximately the same as regular markdown text
Is there any way to the font size used in tabulator and/or the cell height?
Would like to reduce both to be approximately the same as regular markdown text
configuration={ 'rowHeight': 10, }
This takes care of row height… but doesnt change the font size
I’ve figured out how to adjust font size (and font family, fwiw) by using a style sheet, as follows:
stylesheet = """
.tabulator-cell {
font-size: 10px;
font-family: monospace;
}
.tabulator-col-title {
font-size: 10px;
}
"""
And then by applying my style sheet when making my Tabulator instance:
table = pn.widgets.Tabulator(
df,
stylesheets=[stylesheet],
)