You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a canonical way to specify different column widths in render.DataGrid()?
In the following example, I'd like to keep columns a and b at a reasonably small width, while allowing column c to expand enough to accommodate long lines of text.
fromshinyimportApp, Inputs, Outputs, Session, render, uiimportpandasaspddf=pd.DataFrame(
{
"a": [0],
"b": [0.1],
"c": ["A very long line that goes on and on and on"],
}
)
app_ui=ui.page_fluid(
ui.card(
ui.output_data_frame("odf"),
),
)
defserver(input: Inputs, output: Outputs, session: Session):
@render.data_framedefodf():
returnrender.DataGrid(df)
app=App(app_ui, server)
The text was updated successfully, but these errors were encountered:
Is there a canonical way to specify different column widths in
render.DataGrid()
?In the following example, I'd like to keep columns
a
andb
at a reasonably small width, while allowing columnc
to expand enough to accommodate long lines of text.The text was updated successfully, but these errors were encountered: