☰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

DataTable columns dynamic update

Community Supportbokeh
Matthbt
Matthbt

Hello,

I created a datatable with no columns initially.
I am updating the columns by clicking on a dropdown.
It’s working at the first click but not the next ones.

This is the line in question:

user_defined_table.columns = [
TableColumn(field=item, title=item)
for item in items
]

Also I am updating the CDS like this:

empty_row_data = {key: [0] for key in items}
user_defined_source.data = empty_row_data

Any idea ?
Thanks

⌁   Link to post

End of archived discussion · Replies are disabled