st.write("""
# My first app
Hello **world!**
""")
What to do??
st.write("""
# My first app
Hello **world!**
""")
What to do??
Hi @chintsapple -
Streamlit is meant to be run as a regular Python script, not as a Jupyter Notebook. If you copy your code into a regular Python script, then run streamlit run myscript.py
, then you should see the expected results.
Best,
Randy
Hi @randyzwitch, Thanks. It works fine in as a Python script. Thanks again.
Btw can we create app using streamlit in our Machine Learning model, so when I input new data it predict and print result in target feature???
Not sure what you are asking here, but yes it works in the other direction. Meaning, you can call your machine learning model from Streamlit like any other Python code. The model itself wouldn’t embed Streamlit.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.