Practice Labs

Reading about AI is not the same as building with it. These labs make you write the thing, then check whether it actually works.

Code labs

Each lab is a single function with a handful of tests. They are drawn from the parts of real AI engineering that people get wrong first: chunking, cost maths, retries, redaction and retrieval.

Why in-browser. A hosted code sandbox means accounts, containers, queues and a bill that grows with traffic. Pyodide moves all of that to the visitor's own machine: the interpreter is downloaded once (about 10 MB) and cached, your code never leaves the browser, and the labs keep working offline and cost nothing to run. The trade-off is that packages with C extensions are limited to what Pyodide ships, which is why these labs use the standard library only.