We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
st.tabs
Recently, plots have started overflowing from the containers and are cut off when used with st.tabs.
If placed inside an expander, the sizing works correctly.
It doesn't always break, but swapping the order of the tabs seems to trigger the bug.
from random import choices import streamlit as st from streamlit_plotly_events import plotly_events import pandas as pd import plotly_express as px st.title("Minimal Example") n = 1000 letters = ["aaaaaa", "bbbbbbbbbbbbbb", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l"] first, second = st.tabs(["First", "Second"]) with first: st.write("Tabs seems to sometimes break the plot layout.") with second: data = pd.DataFrame.from_dict( { "Name": choices(letters, k=n), "Cool": choices(["Very Much So", "Not Very", "Undoubtedly"], k=n), } ) plot = px.bar(data, "Name", color="Cool", template="plotly_dark") with st.container(): selected = plotly_events(plot)
Screenshot of broken layout:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Recently, plots have started overflowing from the containers and are cut off when used with
st.tabs
.If placed inside an expander, the sizing works correctly.
It doesn't always break, but swapping the order of the tabs seems to trigger the bug.
Minimal Example
Screenshot of broken layout:
The text was updated successfully, but these errors were encountered: