THINK FIRST·CODE LATER

← All labs

Build and deploy a CityPulse dashboard

Problem

Build a small Streamlit (or Dash) dashboard for one CityPulse audience using a dataset you acquired in Chapter 4 (or a provided CSV). Requirements:

  1. A one-paragraph design brief: audience, task chain, decisions supported.
  2. At most 6 panels, laid out by priority; KPIs with context; one linked or filtered view.
  3. Data loaded through a cached function (state the TTL and why); secrets outside the code; the data time shown.
  4. At least three automated tests with AppTest (e.g., every filter value renders without exception; a KPI equals an independently computed value; the "last updated" caption is present).
  5. Deployment notes: where it runs (Community Cloud, Docker, university server), who can access it, and how it behaves when the data source fails.
  6. An AI-use statement: which parts were AI-assisted and how they were verified.

Write the brief, the panel plan, the key code (data loading, one KPI, tests) and the deployment/AI notes.

Work it out on paper, in a document or here, then compare with the model answer. Your answer stays in your browser — it is never sent to or stored on the server.