MRocklin
MRocklin

Reputation: 57271

Align Bokeh DataTable column widths

I have a bokeh DataTable

enter image description here

As you can see, the columns are all the same width. This results in a fair amount of whitespace and some clipping. Is there a way that I can specify default column widths?

Upvotes: 3

Views: 6055

Answers (1)

Luke Canavan
Luke Canavan

Reputation: 2137

TableColumn (which composes a DataTable) has a width attr that can be set:

http://docs.bokeh.org/en/latest/docs/reference/models/widgets.tables.html#bokeh.models.widgets.tables.TableColumn

Upvotes: 9

Related Questions