diff --git a/streamlit_deephaven/streamlit_deephaven.py b/streamlit_deephaven/streamlit_deephaven.py index 61d853e..5fc9013 100644 --- a/streamlit_deephaven/streamlit_deephaven.py +++ b/streamlit_deephaven/streamlit_deephaven.py @@ -51,6 +51,8 @@ def _remove_widgets(): from deephaven_server import Server for object_id in st.session_state[DH_STATE]['to_delete']: Server.instance.__globals.pop(object_id, None) + st.session_state[DH_STATE]['to_delete'] = [] + def start_server(host: Optional[str] = None, port: Optional[int] = None, jvm_args: Optional[List[str]] = None): """