☰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

Frozen_columns in data table not working

Community Supportdatatable
coyne44
coyne44

Hello,

I am trying to create a data table that has first column frozen when I scroll to the right. There is the attribute, frozen_columns in the documentation but I get an attribute error when I add it in there. Otherwise the table works fine, the first column is just not frozen.

Here is my code:

source = ColumnDataSource(trend.iloc[:-1])

columns = [TableColumn(field=x, title=x) for x in trend.columns]

death_percentages_per_week = DataTable(source=source, columns=columns, width=1200, height=400, fit_columns = False, frozen_columns = 1)

This is the error I get:

AttributeError: unexpected attribute ‘frozen_columns’ to DataTable, similar attributes are fit_columns or columns

Did this attribute get removed?

Thanks,
Andrew

⌁   Link to post
Bryan
Bryan

Are you looking at the documentation version that corresponds to the package version you have installed? IIRC frozen_columns is a recent addition, so if your installed version of Bokeh is older than that, you would need to upgrade to use it.

⌁   Link to post

End of archived discussion · Replies are disabled