How to create a Streamlit app in VS Code

Data Science
Streamlit is a pure python framework which allows you to create simple and easy dashboards for your team.

Jakob Johannesson


May 31, 2022

How to create a streamlit app in VS Code on Youtube.

Getting started

Here we are setting up the environment for development.

Create an envionment for streamlit

Run this is the terminal to create a new environment.

python3 -m venv env && source ./env/bin/activate

Installing Streamlit

Run the following in the terminal:

pip install streamlit

Create a file called

Copy the code and call the file

import streamlit as st

st.write("# Header 1")

Run the app

Run the app by executing the following in the terminal:

streamlit run

What about deployment?

You can use a paid service such as Streamlit cloud, but I want to show you how to use github and AWS EC2 to deploy the app on the web.

In the next tutorial we will dive into deployment.. Check it out! Ciao!