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
Click tab B, then tab A. The plot size is 0.
import altair as alt import pandas as pd from shiny import reactive from shiny.express import ui from shinywidgets import render_altair @reactive.calc def plt(): main_df = pd.DataFrame({ "x": [1, 2, 3, 4, 5, 6], "y": [3, 4, 5, 6, 7, 8], }) return ( alt.Chart(main_df) .mark_circle() .encode(x="x", y="y") ) with ui.card(): with ui.navset_pill(id="tab"): with ui.nav_panel("A"): @render_altair def x_y_graph(): return plt() with ui.nav_panel("B"): @render_altair def y_x_graph(): return plt()
The text was updated successfully, but these errors were encountered:
Cross-posting Carson's workaround posted in discord:
you can add a ui.tags.script that triggers a resize when a tab is shown to workaround it for now
Sorry, something went wrong.
Close #172: Trigger resize when a Bootstrap tab is shown
42fa3ec
57cf0fa
Successfully merging a pull request may close this issue.
Click tab B, then tab A. The plot size is 0.
The text was updated successfully, but these errors were encountered: