Skip to content

plindman/streamlit-cheat-sheet

Repository files navigation

Streamlit Sidebar Elements Cheat Sheet

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.

Features

The cheat sheet includes the following Streamlit sidebar elements:

  • st.sidebar.button
  • st.sidebar.checkbox
  • st.sidebar.radio
  • st.sidebar.selectbox
  • st.sidebar.multiselect
  • st.sidebar.slider
  • st.sidebar.text_input
  • st.sidebar.text_area
  • st.sidebar.number_input
  • st.sidebar.date_input
  • st.sidebar.time_input
  • st.sidebar.file_uploader
  • st.sidebar.color_picker

Installation

  1. Clone the repository or download the code files.
git clone https://github.com/plindman/streamlit-cheat-sheet.git
cd streamlit-cheat-sheet
  1. 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`
  1. Install the required packages.
pip install -r requirements.txt

Usage

streamlit run streamlit_app.py

Open a web browser and navigate to the URL provided by the Streamlit output (usually http://localhost:8501).

Acknowledgements

Streamlit Documentation for providing comprehensive guides and references.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages