Streamlit Flashcards

๐Ÿš€ 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.