I just have this simple streamlit Hello.py
import streamlit as st
st.set_page_config(
page_title="Hello",
page_icon="๐",
)
st.write("# Welcome to Streamlit! ๐")
st.sidebar.success("Select a demo above.")
st.markdown(
"""
Streamlit is an open-source app framework built specifically for
Machine Learning and Data Science projects.
**๐ Select a demo from the sidebar** to see some examples
of what Streamlit can do!
### Want to learn more?
- Check out [streamlit.io](https://streamlit.io)
- Jump into our [documentation](https://docs.streamlit.io)
- Ask a question in our [community
forums](https://discuss.streamlit.io)
### See more complex demos
- Use a neural net to [analyze the Udacity Self-driving Car Image
Dataset](https://github.com/streamlit/demo-self-driving)
- Explore a [New York City rideshare dataset](https://github.com/streamlit/demo-uber-nyc-pickups)
"""
)
print("haha")
I run it with streamlit run Hello.py
,
however, I am seeing that the haha prints between 2 to 4 timesโฆ
Should I expect that it should only be called once? What is causing the rerun?
Before clicking โCreate Topicโ, please make sure your post includes the following information (otherwise, the post will be locked).
- Are you running your app locally or is it deployed?
locally - If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?
b. Share the link to the public deployed app. - Share the link to your appโs public GitHub repository (including a requirements file).
- Share the full text of the error message (not a screenshot).
- Share the Streamlit and Python versions.