Skip to content

Commit 2dadce4

Browse files
committed
Inhibit deprecated user warning in Streamlit 1.45.1 and update version to v2025.11.13
1 parent 29c330d commit 2dadce4

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

code/Home.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@
6060
pass
6161

6262

63+
# Inhibit the deprecated user warning from streamlit 1.45.1
64+
# https://discuss.streamlit.io/t/can-not-find-cause-of-st-experimental-user-deprecation-warning/111680
65+
def no_op(*args, **kwargs):
66+
"""This function replaces the original one and does not perform any action."""
67+
pass
68+
st.user_info.maybe_show_deprecated_user_warning = no_op
69+
70+
6371
def _trainer_mapper(trainer):
6472
user_mapper = {
6573
'Avalon Amaya': ['Avalon'],

code/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__ver__ = 'v3.2.1'
1+
__ver__ = 'v2025.11.13'

code/util/streamlit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ def _add_agg(df_this, x_name, y_name, group, aggr_method, if_use_x_quantile, q_q
11771177

11781178
def add_footnote():
11791179
st.markdown('---')
1180-
st.markdown(f'#### AIND Behavior Team @ 2025 {__ver__}')
1180+
st.markdown(f'#### Han Hou @ AIND Behavior Team\n{__ver__}')
11811181
st.markdown('[bug report / feature request](https://github.com/AllenNeuralDynamics/foraging-behavior-browser/issues)')
11821182

11831183

0 commit comments

Comments
 (0)