Is there a Table or Layout option I’m missing to display a go Table in it’s entirety (no scrolling)? I can set a height but won’t know how many rows and therefore how much height to include the complete table and also not go over.
Looking for scroll=false or something, I guess.
I’m programmatically creating px and go figures and then writing the image/pdf to disk. Table gets cut off if the whole thing isn’t displayed first. Or that’s what I’m experiencing.
Thank you!
import plotly.graph_objects as go
def get_test_table():
df = px.data.iris()
fig = go.Figure(data=[go.Table(
header=dict(values=list(df.columns),
align='left'),
cells=dict(values=[df.sepal_length, df.sepal_width, df.petal_length,
df.petal_width, df.species, df.species_id],
align='left'))])
return fig
table_fig = get_test_table()
table_fig.update_layout(height=500)
table_fig.show()