This project is a Streamlit app that serves as a cheat sheet for various Streamlit sidebar elements. It provides descriptions and basic usage examples for each element, helping users understand how to utilize these components in their own Streamlit applications.
The cheat sheet includes the following Streamlit sidebar elements:
st.sidebar.buttonst.sidebar.checkboxst.sidebar.radiost.sidebar.selectboxst.sidebar.multiselectst.sidebar.sliderst.sidebar.text_inputst.sidebar.text_areast.sidebar.number_inputst.sidebar.date_inputst.sidebar.time_inputst.sidebar.file_uploaderst.sidebar.color_picker
- Clone the repository or download the code files.
git clone https://github.com/plindman/streamlit-cheat-sheet.git
cd streamlit-cheat-sheet- Create a virtual environment and activate it (optional but recommended).
python3 -m venv .venv # On Windows, use `python -m venv .venv`
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`- Install the required packages.
pip install -r requirements.txtstreamlit run streamlit_app.pyOpen a web browser and navigate to the URL provided by the Streamlit output (usually http://localhost:8501).
Streamlit Documentation for providing comprehensive guides and references.