Syllabus

  1. 01Streamlit BasicsHow a Streamlit app runs, why every click reruns your whole script, and how widgets hand values back to it.2 lessons
    1. 01The Rerun Model
    2. 02Widgets Return Values
  2. 02Layout and DataPut text, tables, charts and headline numbers on the page, arrange it with a sidebar, columns and tabs, and accept a CSV without crashing before anything has been uploaded.3 lessons
    1. 01Tables, Charts and Metrics
    2. 02Sidebar, Columns and Tabs
    3. 03Uploading Files
  3. 03State and CachingKeep values alive between reruns with session state, handle button clicks and forms without fighting the rerun model, stop repeating expensive work with the two caching decorators, and save a log to a database.2 lessons
    1. 01Session State, Callbacks and Forms
    2. 02Caching and Databases
  4. 04Putting a Model in the AppTrain a small scikit-learn text classifier, load it once with a cached resource, flag the scores it is unsure about, score a whole CSV, and wrap it in a chat interface, all without an API key.2 lessons
    1. 01A Model in the App
    2. 02Scoring Files and Chat
  5. 05Ship ItSplit the app into pages, keep passcodes and keys out of the source, protect the model page with a test, and deploy to Streamlit Community Cloud with pinned dependencies.2 lessons
    1. 01Multipage Apps
    2. 02Secrets, Tests and Deployment