☰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

About datatable's frozen_rows question, How should I use display data instead of object?

Community Supportbokeh
Sacrifice54
Sacrifice54

from datetime import date
from random import randint

from bokeh.io import show
from bokeh.models import ColumnDataSource, DataTable, DateFormatter, TableColumn

data = dict(
dates=[date(2014, 3, i+1) for i in range(10)],
downloads=[randint(0, 100) for i in range(10)],
)
source = ColumnDataSource(data)

columns = [
TableColumn(field=“dates”, title=“Date”, formatter=DateFormatter()),
TableColumn(field=“downloads”, title=“Downloads”),
]
data_table = DataTable(source=source, columns=columns, width=400, frozen_rows=1, height=280)

show(data_table)

⌁   Link to post
Bryan
Bryan

@Sacrifice54 This just seems like a bug. Please open a GitHub Issue with full details. cc @mateusz

Also, please make sure to use the actual code-formatting options when posting. It’s harder for us to copy-paste sample code to try out if you don’t (e.g. all the string quotes above pasted as paired “smart quotes” and had to be manually fixed before the code would run).

⌁   Link to post

End of archived discussion · Replies are disabled