Hi,
I’ve made some research but I’m no sure there’s any easy solution.
I would like to add a visual separator in a bokeh datatable. That is, for example, drawing a red line between two columns of my datatable. With the following code :
from bokeh.io import curdoc
from bokeh.models import ColumnDataSource
from bokeh.models.widgets import DataTable, TableColumn
import pandas as pd
df = pd.DataFrame({
'col1': ['foo', 'bar', 'morefoo'],
'col2': ['more', 'useless', 'things']
})
source = ColumnDataSource(df)
columns = [TableColumn(field='col1'), TableColumn(field='col2')]
table = DataTable(source=source, columns=columns)
curdoc().add_root(table)
I get this :

And I’d like something like this :

Is there an easy way to do this?


