Streamlit Basics: Deploy Your First Web App

Gustavo Santos
gustavorsantos
Published in
3 min readSep 3, 2021

--

Learn how to deploy a Web App using share from Streamlit.

Photo by Austin Distel on Unsplash

Last post, I showed you how to build your first app.

Now it is time to deploy it and have more material build your portfolio.

Preparing for Deploy

Deploying is even as easy as creating an app. All you need is a GitHub account and a requirements file.

Begin by creating a requirements.txt file. To do that, look at your #imports section on your code and you will need to get the versions.

In our example case, I need the versions used for these 5 libraries.

import seaborn as sns
import numpy as np
import pandas as pd
import streamlit as st
import plotly.express as px

To find that, you can open a command prompt and write pip freeze . You will see something like this.

--

--

Gustavo Santos
gustavorsantos

Data Scientist. I extract insights from data to help people and companies to make better and data driven decisions. | In: https://www.linkedin.com/in/gurezende/