Installing & Setting Up Streamlit

Page 1


Installing & Setting Up

Streamlit A Beginner’s Guide to Starting with Streamlit

Agenda

1.What is Streamlit?

2.Prerequisites

3.Installing Streamlit

4.Creating Your First Streamlit App

5.Running the App

6.Streamlit Folder Structure

7.Customizing & Sharing Apps

8.Summary

What is Streamlit?

Streamlit is an open-source Python framework to quickly build interactive web apps for machine learning & data science.

Requires no frontend coding (HTML, CSS, JS).

Simple syntax — build apps in minutes using pure Python!

�� Ref: Official Docs + Medium article “Build Web Apps in Python withStreamlit”

Prerequisites

Install Python 3.8+

Install pip (Python package manager)

Optional: Create a virtual environment

Installing Streamlit

Open your terminal or command prompt:

✅ Check installation:

Creating Your First App

Create a new file called app.py Paste this code:

�� Save the file in your project folder

Running the App

In terminal, navigate to the file folder:

�� A browser tab will open with your app (usually: http://localhost:8501)

�� Make changes to the code — the app auto-updates!

Folder Structure

You can organize your files just like a mini project.

Customizing & Sharing

Use widgets: st.slider(), st.button(), st.text_input() Share app using: Streamlit Community Cloud Deploy on Heroku, Render, or Hugging Face Spaces

�� Add custom styling using st.markdown() and themes in .streamlit/config.toml

Summary

Streamlit is easy to install with pip install streamlit Write apps in Python — no frontend needed

Run locally with streamlit run app.py Share with the world in a few clicks!

• Visit our website: https://www.accentfuture.com/

• Call/Whatsapp: +91-9640001789

• Email Us: contact@accentfuture.com

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Installing & Setting Up Streamlit by dasthagiri Sk - Issuu