notebook-ta
notebook-ta adds an LLM-powered teaching assistant to Jupyter notebooks for Python programming
courses. Students work with the %%notebook_ta cell magic, while instructors define exercises,
tests, and tutor prompts in TOML files.
User Guide
Reference
Quick Start
Install the package:
pip install notebook-ta
Load the teaching assistant from a notebook setup cell:
import notebook_ta
notebook_ta.load("global_config.toml", "exercises.toml")
Use the magic in a student answer cell:
%%notebook_ta ex1
def add(a, b):
return a + b
See the example configuration and notebook files in
docs/examples.