Member-only story
Build GUI’s In Python Using StreamLit
There are many different ways to build a GUI (front end) in Python, but one of my favorite apps is Streamlit! It allows you to build web apps using pretty much nothing except Python, the apps have a lot of functionality with modern visuals, so let’s get started!
Installation
First off, we will need to install Streamlit, in order to do so we can use pip install, if you don’t have pip, read this article I made that shows how to install it. run this following command inside of your terminal / command prompt:
pip install streamlit
Awesome, once installed we are ready to go!
Let’s build a GUI!
Before building the GUI, let me break down the process:
First, we build out the app in Python > we then execute the code using streamlits function in our terminal / command prompt > then our web browser will open the streamlit app
To begin, let’s open a blank Python script, streamlit mentions in their beginning tutorial “first_app.py” but you can name it whatever you want, we then want to import the following packages:
import streamlit as st
import numpy as np
import pandas as pd
import time