Skip to content

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

Streamlit

Streamlit turns data scripts into shareable web apps in minutes. All in pure Python. No front‑end experience required.

Setup

Clone the Repo (use this template)


  1. In this GitHub repo, click on "Use this Template" (the green button at the top of this page)

  1. Name the repo streamlit-app

  1. In your GitHub-Account, click on the green Code button and select Open with GitHub Desktop to copy the streamlit-app repository to your local machine.

Run the app

In your terminal (Mac) or Anaconda Command Prompt (Windows):


  • Step 1: cd into the streamlit-app folder (replace YOURPATH with your path to the folder streamlit-app)
cd YOURPATH/streamlit-app

  • Step 2: install all needed Python libraries from the environment.yml file to create a virtual environment named env-streamlit.yml:
conda env create -f env-streamlit.yml

  • Step 3: Activate the streamlit environment:
conda activate streamlit

  • Step 4: Change current directory (cd) into 1-first-app
cd 1-first-app

  • Step 5: Start the app:
streamlit run app.py
  • If asked for your e-mail, you can simply press enter (you don't need to provide this information)

  • Step 6: The command should open your browser and display the app.

  • If your browser opened but only displays a blank screen (this may happen if you use Safari), copy the url and paste it in another browser (e.g., Chrome).


Start VS Code


  • Step 7: Start Visual Studio Code and click on Open Folder in the Explorer. Select the streamlit-app folder.

  • Step 8: In the VS Code Explorer, select 1-first-app and open the file app.py (this is the code of the app)

  • While developing a Streamlit app, it's recommended to lay out your VS code editor and browser windows side by side, so the code and the app can be seen at the same time.


  • Step 9: VS Code: In the code of app.py, change st.title("My first App") to st.title("Hello World!") and save the changes.

  • Step 10: Refresh your browser to display the changes.

  • Step 11: If you are done, close the browser window, go to your terminal and stop your app with Ctrl+C (or simply close the terminal window).


Guides


  • App demo:
streamlit hello

A Streamlit demo to interactively visualize Uber pickups in New York City:

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages