As part of my Python Bootcamp, I've developed a todo app with the Streamlit library.
- Clone the repository
- Make sure you have the latest Python version
- Open Project:
cd myproject
- Install venv:
python3 -m venv venv
- Run venv:
source venv/bin/activate
- Run Streamlit library:
pip install streamlit
- Validate installation:
streamlit hello
- If the above doesn't work use:
python -m streamlit hello
- Import library;
import streamlit as st
- Write your first line:
st.write("Hello world")
- Create requirements file:
pip freeze > requirements.txt
- Install requirements:
pip install -r requirements.txt
- Run your app:
python -m streamlit run app.py
orstreamlit run app.py
- Write more code, write the tests, and have fun! 🎉