Home

Awesome

Learning Streamlit

Just one of the things I'm learning. https://github.com/hchiam/learning

Streamlit lets you quickly run a Machine Learning web app built with pure Python.

Quick minimal setup

pip install streamlit # you might need to use pip3
streamlit hello

Basic example

# mini_demo.py
import streamlit as st

x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
pip install streamlit # you might need to use pip3
streamlit run mini_demo.py

Bigger example (uses Machine Learning!)

https://github.com/hchiam/python-ml-web-app

Deploy

https://towardsdatascience.com/quickly-build-and-deploy-an-application-with-streamlit-988ca08c7e83

You might also like Google Colab

https://colab.research.google.com/notebooks/intro.ipynb

https://www.youtube.com/watch?v=6nGCGYWMObE

https://github.com/hchiam/colaboratory-intro