mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-06 17:49:07 -05:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1385
Author: @profvjreddi
Created: 4/17/2026
Status: ✅ Merged
Merged: 4/17/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/labs-1332-sweep📝 Commits (1)
9d5c153fix(labs/vol1): restore slider/dropdown dataflow in lab_02 + lab_03 (#1332)📊 Changes
2 files changed (+107 additions, -37 deletions)
View changed files
📝
labs/vol1/lab_02_ml_systems.py(+68 -26)📝
labs/vol1/lab_03_ml_workflow.py(+39 -11)📄 Description
what
lab_02 and lab_03 in vol1 had a widespread marimo dataflow bug: widget cells defined secondary widgets (sliders, dropdowns, the Part C PM-allocation dict in lab_03) alongside the next part's prediction radio but only returned the prediction. marimo's static dataflow therefore never wired those widgets into the tabs cell, so every lever downstream of a prediction lock was missing once the student answered.
@asgalon flagged this in #1332 as "missing prediction choices" and "Part C chart stuck, does not move when changing items."
fix: split widget defs into one cell per part, each returning every widget it owns; update tabs cell signature to receive them all.
lab_02 additional fixes
lab_03 specifics
test plan
addresses #1332 (partial; covers lab_02 + lab_03, leaves the ''1.1x vs 1.64x example values'' suggestion and later-lab items for follow-ups)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.