Save this file inside nlp-lab/python/ as
MASTER.html. Students can read
explanations, click a file, preview code, and also run Python in the
embedded editor (internet required).
MASTER.html → “Open with Live Server”py -m http.server 5501 (Windows) /
python3 -m http.server 5501
(Mac/Linux)http://localhost:5501/MASTER.html
Click any file to see its goal, what it teaches, run command, and its full code.
py -m venv .venv (Windows) /
python3 -m venv .venv
.venv\Scripts\activate (Windows) /
source .venv/bin/activate
pip install -r requirements.txt
python 06_cosine_similarity.py
Click a file name on the left to load its explanation and code preview.
—
This lets students run the same Python snippets in-browser. For serious work, they should still run scripts in VS Code terminal.
https://www.learnwithchampak.live/2026/01/programmers-picnic-python-editor.html