Teach and auto-grade Python in Moodle — with zero server setup.
Install the free CodeLab Moodle plugins and students immediately get a VS Code (Monaco) editor, in-browser Python (Pyodide), live Turtle graphics, a step-by-step variable & call-stack tracer, and auto-graded quiz questions.
Pyodide in the browser
Lesson examples run directly in each student's browser with input(), standard library modules, and instant SVG Turtle graphics — no backend needed for interactive lessons.
Step trace & call stack
Students step forward and backward through loops and recursion, watching local variables highlight as they change and inspecting the live call stack.
Tests, Parsons & constraints
Grade Python quizzes with visible/hidden tests, float tolerance, regex matching, drag-and-drop Parsons problems, and static rules (for example, forbidding max() or sort()).
Errors explained
Common Python errors such as IndentationError, NameError and IndexError are explained for beginners under the console, with a link to the line. Off in exam questions without typing help.
Projector and worksheets
Class view shows every student's copy, with names hidden on the projector. Printed pages become worksheets with just the code.
Editor settings
Font size, line spacing and word wrap from a keyboard-accessible menu, remembered on each device.
matplotlib in the browser
A program that imports matplotlib or numpy shows each plt.show() as an image under the console, with Download SVG and PNG, and no server needed.
Follow the teacher
The teacher broadcasts the code on a page and students who follow see it live, then stop following to try their own copy.
How the answer was written
A timeline of runs, tests and pasted blocks for each attempt, with similarity checks on structure rather than names.
Get started in 3 minutes
Install the free plugins
Install tiny_codelab, filter_codelab, and qtype_codelab from the Moodle Plugins Directory.
Import Python starter questions
Download our 10-question Python Fundamentals XML pack (or browse all 26 languages).
Connect runner for quiz grading
Use your own self-hosted CodeLab runner / Jobe or activate a one-click 30-day free CodeLab Cloud trial.