S
Solara7mo ago
Harry

Solara DataFrame column padding

Hi all, I am using the Solara DataFrame to show data in a table in my Solara application. However, the columns are so narrow it makes it very difficult to read (see picture below from the example on the solara website). Is there any way of adding more padding to the collumns to make them easier to read? This is the code I have at the moment:
@solara.component
def expeirment_flasks_table(flask: Flask):
with solara.Card(f"Flasks in Experiment: {flask.experiment_id}"):
with solara.Column(margin=10):
solara.DataFrame(df=flask.experiment_flask_df)
solara.Button(
icon_name="mdi-refresh",
on_click=flask.refresh_flask_table,
)
@solara.component
def expeirment_flasks_table(flask: Flask):
with solara.Card(f"Flasks in Experiment: {flask.experiment_id}"):
with solara.Column(margin=10):
solara.DataFrame(df=flask.experiment_flask_df)
solara.Button(
icon_name="mdi-refresh",
on_click=flask.refresh_flask_table,
)
which produced the screenshot below (the one in light mode) Thank you, - H
No description
2 Replies
Harry
HarryOP7mo ago
No description
Harry
HarryOP7mo ago
typo in title: DataTable
Want results from more Discord servers?
Add your server