mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
[PR #1339] [MERGED] fix(labs/lab01): unblock prediction widget chain #8130
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/1339
Author: @Shashank-Tripathi-07
Created: 4/16/2026
Status: ✅ Merged
Merged: 4/16/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/lab01-prediction-widget-chain📝 Commits (2)
580c093fix(labs/lab01): unblock prediction widget chaina6c0a95ci: retrigger with workflow fix from #1344📊 Changes
1 file changed (+35 additions, -38 deletions)
View changed files
📝
labs/vol1/lab_01_ml_intro.py(+35 -38)📄 Description
Problem
Each
mo.stop()gate cell was returning its interactive widgets (partA_scenario/partA_fix,partB_batch,partC_target) bundled with the next prediction radio. When a prediction wasNone,mo.stop()halted execution and those returns never happened, breaking the entire downstream chain. Result:partB_prediction,partC_prediction,partD_predictionwere never created, so the tab-building cell never ran and nothing rendered.Fix
Matches
lab_02's working pattern:partA_scenario,partA_fix,partB_batch,partC_target,partD_scale) move into the final gate cell (gated onpartD_prediction)Testing
Verified against
lab_02_ml_systems.pywhich uses the identical pattern and works correctly.Fixes #1317
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.