Remove fragment from sidebar controls (not supported)

Sidebar controls cannot be in a fragment. Brief blank on
slider change is a Streamlit limitation.
This commit is contained in:
2025-04-15 21:25:23 +00:00
parent 9a3fed1da0
commit 9e9c8b55f5

View File

@@ -93,9 +93,8 @@ def sync_engine_from_session_state() -> None:
engine.set_load_current(st.session_state.get("load_current", 100.0) / 1000.0)
@st.fragment
def display_controls() -> None:
"""Display simulation control panel in sidebar (as fragment to avoid full reruns)."""
"""Display simulation control panel in sidebar."""
st.sidebar.header("Simulation Controls")
# Start/Stop button