Can st.fragment used in Python 3.7?
Streamlit only supports Python 3.9+ at the moment, see here, so with a current version it probably won’t work. Streamlit 1.37, which introduced st.fragment
officially supports Python 3.8+, so you might want to try this with 3.7 and see if it still works.