๐ Streamlit Flashcards
๐ก What is Streamlit?
An open-source Python framework for turning data scripts into interactive web apps with minimal effort.
โ๏ธ How does Streamlit work?
Streamlit runs Python scripts from top to bottom and reruns them on every user interaction.
๐ Can Streamlit display charts?
Yes, it supports visualizations using libraries like Matplotlib, Plotly, Altair, and others.
๐ What are widgets in Streamlit?
Widgets like sliders, buttons, and selectboxes enable user interaction with your app.
๐ How to upload files?
Use
st.file_uploader()
to allow users to upload files into the app.๐ Does Streamlit support authentication?
Basic auth is available through Streamlit Community Cloud or via external integrations.
๐งฐ Can I deploy a Streamlit app?
Yes, using Streamlit Community Cloud, Heroku, AWS, GCP, etc.
๐งช What is Streamlit’s caching feature?
Use
@st.cache_data
or @st.cache_resource
to avoid recomputing expensive functions.๐ฏ Can Streamlit run ML models?
Absolutely! You can load and run ML models using Scikit-learn, TensorFlow, PyTorch, etc.
๐ฆ How to install Streamlit?
Run
pip install streamlit
in your Python environment to get started.