@cocainesteamedrice
Thanks for sharing. Can you please share your code so we have a reproducible example, or is it the exact same code that is in the github link that you added?
Iβd like to test it on my computer
I encounter the same issue when using plotly tables in streamlit.
After switching to βtab2β and hitting the button there all cells with spaces inside the table in tab1 are missing.
Here is a short code snippet for testing:
import plotly.graph_objects as go
import streamlit as st
fig = go.Figure()
fig.add_table(
header=dict(values=["Header1", "Header2 with space"]),
cells=dict(
values=[
["text with spaces"] * 30,
["text_without_spaces"] * 30,
],
),
)
tab1, tab2 = st.tabs(["Tab1", "Tab2"])
tab1.button("Get text back")
tab1.plotly_chart(fig)
with tab2:
st.button("Text tab 1 disappears")
Apart from this issue I am very happy with the features and functionality of plotly tables!