CLCodeLab Edu
Moodle Python Plugin

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.

Zero server

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.

Visual debugging

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.

Auto-grading

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()).

Error help

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.

In class

Projector and worksheets

Class view shows every student's copy, with names hidden on the projector. Printed pages become worksheets with just the code.

Comfort

Editor settings

Font size, line spacing and word wrap from a keyboard-accessible menu, remembered on each device.

Charts

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.

In class

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.

Integrity

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.