mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-06 17:49:07 -05:00
[PR #1322] [CLOSED] fix: add missing mlsysim wheel and correct micropip path in all labs #5126
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/1322
Author: @Shashank-Tripathi-07
Created: 4/11/2026
Status: ❌ Closed
Base:
dev← Head:fix/add-mlsysim-wasm-wheel📄 Description
Problem
Every lab notebook (33 total across vol1 and vol2) fails to load in the browser with a
micropipinstall error. Two compounding issues:wheels/directory missing — all labs referencewheels/mlsysim-0.1.0-py3-none-any.whlvia micropip in their WASM bootstrap block, but the directory and wheel file were never committed to the repo (it's gitignored by default).Wrong relative path — the path used in all labs was
../../../wheels/which resolves outside the repo root. The correct path fromlabs/vol{1,2}/to the repo root is../../wheels/, which is also whatlabs/tests/test_static.pyalready asserts.Impact
Zero workaround — the WASM bootstrap block runs unconditionally when
sys.platform == "emscripten". Every student opening any lab in the browser hits this error before the first cell executes. No lab is usable in browser/WASM mode.Fix
mlsysim-0.1.0-py3-none-any.whlwheel and committed it towheels/../../../wheels/→../../wheels/across all 33 lab filesVerification
Aligns with the existing test assertion in
labs/tests/test_static.py:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.