CLCodeLab Edu
Screenshots

The plugins at work.

Pictures from the plugins running in Moodle: the editors, the viewers, the class views and the graded questions of CodeLab, Algorithm, AISim, NetLab, DBLab, LogicLab, WebLab, ShellLab and CyberLab. Click a picture to see it full size.

CodeLab

Run, debug and grade programs in 27 languages.

A binary search tree drawn in the memory view of the CodeLab debugger
Trees in the memory view. A binary tree built by the program, with arrows from the variables root and cur.
A weighted directed graph drawn during a step by step run of Dijkstra in Python
Graphs in the memory view. An adjacency list drawn as a graph during a step by step run of Dijkstra.
A matplotlib bar chart shown under the console of a Python example
matplotlib in the browser. A chart of Python in the browser, no server needed, with SVG and PNG download.
Class view with student names hidden as Student 1 to Student 5 and copies of the code
Class view on the projector. Every student copy of an example, with names hidden for the projector.
A student following the live broadcast of the teacher
Follow the teacher. Students follow the code of the teacher live, then take a copy or stop following.
An HTML, CSS and JavaScript question in a quiz with two tests passed
HTML, CSS and JS questions. The answer is a page; each test is a JavaScript assertion checked in jsdom.
The timeline of how an answer was written, with a large insertion marked
How the answer was written. A timeline of snapshots, runs and large insertions of an attempt.
Algorithm

Flowcharts that run, step and turn into code.

The Algorithm flowchart editor with the code panel
The flowchart editor. Blocks, a live code panel and a run with variables, inside the text editor.
The Arrays panel showing an array as bars during a run
Arrays panel. Arrays drawn as bars while the algorithm runs, with the elements read and written marked.
The step back controls and the timeline slider of a run
Step back and timeline. Go back to any earlier step of a run with the same input.
A chart of the steps of an algorithm beside growth curves
Complexity. The steps of an algorithm for growing n beside the curves n, n log n and n squared.
The Code to diagram dialog
Code to diagram. Pasted Python turned into a flowchart.
A matrix shown as a table in the variable watch
Matrices. A matrix shown as a table while the algorithm runs.
A runnable flowchart in a Moodle page
A flowchart in a page. Readers run and step the flowchart of an exercise without editing it.
The Class work view with small diagrams of student copies
Class work. The copies the students are changing, as small diagrams with test results.
A quiz question where the student draws a flowchart
Draw the algorithm. A quiz question where the student draws a flowchart and runs it.
The Analysis tab of a quiz question
Analysis of a question. Tests passed, wrong outputs and grades for the whole class.
AISim

Machine learning you can touch.

The AISim insert dialog with a live preview
Insert dialog with preview. Pick a simulation and its starting values and see it before it goes into the text.
The recurrent neural network simulation with a noisy thermometer
Recurrent neural network. A network that reads a noisy thermometer and follows the real temperature.
The logistic regression simulation
Logistic regression. Students move the boundary and watch the model change.
The cross-validation simulation
Cross-validation. How the choice of the training folds changes the score.
The data preparation simulation
Data preparation. Missing values, scaling and encoding before a model sees the data.
The neural network simulation
Neural network. Layers, weights and the loss while the network trains.
A quiz question with the recurrent neural network simulation and a task objective
A graded simulation question. A quiz question with a task objective that the simulation checks.
NetLab

A network lab in every lesson.

The NetLab workspace with an OSPF lab of three routers
The workspace. An OSPF lab with three routers and two computers; the toolbar has devices, cables and tools.
The inspector of a router with its interfaces and addresses
Configure a device. Interfaces, addresses and ports of a router in the inspector.
The Physical tab of a router with the hardware model and module slots
Models and modules. Choose a device model and add expansion modules while the device is off.
The command line of a router showing the routing table
A Cisco-style command line. Modes, abbreviations, help and show commands, such as show ip route.
Simulation mode with the event list of a ping between two computers
Packet simulation. An event list, a Complex PDU and the filter of protocols, with a layer 1 to 7 inspector.
DBLab

SQLite databases, query stepping and live ER diagrams.

The DBLab SQLite workspace with schema tree, SQL editor and result table
Interactive SQLite workspace. Live schema sidebar with PK/FK indicators, SQL editor with autocomplete and tabular results.
The DBLab Query Stepper inspecting SELECT clauses one stage at a time
Query Stepper. Inspects a SELECT query stage by stage through FROM/JOIN, WHERE, GROUP BY, HAVING and ORDER BY.
The DBLab live ER diagram rendered from the SQLite database
Live ER diagram. Automatically generated SVG ER diagram in Crow's Foot or Chen notation, updated as tables change.
The Tiny DBLab editor dialog for inserting an interactive database block
TinyMCE insert dialog. Pick a dataset, preset or custom schema and insert a DBLab block into any Moodle page.
A DBLab SQL quiz question attempt with live SQLite testing and automatic grading
Auto-graded SQL quiz question. Students write and test SQL in the browser; Moodle verifies and grades it on the server.
LogicLab

Gates, flip-flops and DC circuits you can wire.

The LogicLab editor with a full adder circuit, its truth table and minimal expressions
Live analysis. Click the input switches and watch the truth table, the minimal sum of products and the Karnaugh map follow.
A BCD to seven-segment decoder built from logic gates in LogicLab
Larger circuits. A BCD to seven-segment decoder drawn with gates, wired and simulated in the browser.
A three-bit synchronous counter in LogicLab with its timing diagram
Flip-flops and timing. Press Clock pulse or Auto clock and read the timing diagram of a synchronous counter.
A four-bit ALU block with input switches and outputs in LogicLab
Buses and ALU, RAM, ROM blocks. Bus inputs and outputs, a four-bit ALU and memory blocks for computer architecture lessons.
A DC circuit with a battery, switch, resistor, LED and ammeter in LogicLab
DC circuits. A steady-state solver shows voltages, currents and the state of switches and LEDs.
WebLab

HTML, CSS and JavaScript in a safe sandbox.

The WebLab editor with the layout inspector drawing flexbox and CSS grid overlays on the live preview
Layout inspector. Draws flexbox and CSS grid lines right over the live preview, with viewport switching.
The WebLab accessibility checker listing missing alt text, labels, skipped heading levels and low contrast
Accessibility checker. Flags missing alt text, unlabelled inputs, skipped headings and low colour contrast.
A responsive Bootstrap 5 card layout running offline inside the WebLab sandbox
Offline Bootstrap and jQuery packs. Students build responsive pages with bundled libraries and no external CDN.
The TinyMCE WebLab dialog for inserting an exercise with editable, read-only or hidden files
TinyMCE insert dialog. Pick a built-in exercise, set each file to editable, read-only or hidden, and preview it live.
A graded WebLab quiz question showing three passed DOM, CSS and mobile viewport checks
Auto-graded web questions. DOM and CSS checks run on the server, and computed-style checks run at mobile or desktop width.
The WebLab question check builder with CSS rule and browser computed-style checks
Check builder. Combine element, CSS rule, computed-style and interaction checks in the question form.
ShellLab

A Linux and Git terminal that cannot break anything.

The ShellLab Linux terminal with a virtual file tree and a live checklist of passed checks
Linux terminal and live checklist. Commands run on a virtual file system in the browser while the task checklist ticks live.
ShellLab running git merge and git tag beside a live SVG commit graph and file tree
Git with a live commit graph. Branch, merge, tag and inspect the repository graph beside the terminal.
A graded ShellLab quiz question verifying created files, file content, permissions and commands used
Auto-graded shell questions. Checks files, content, permissions, commands used and Git state after the student finishes.
CyberLab

Hands-on cybersecurity that cannot hurt anything.

A CyberLab Caesar cipher exercise listing all 25 possible shifts to decrypt a message
Classic and modern crypto. Students inspect all 25 Caesar shifts, test weak ciphers and work with personal seeded data.
A CyberLab SQL injection exercise showing the injected query, login bypass and editable server code
Attack and fix. Exploit a vulnerable login with SQL injection, then edit the server code to a prepared statement and stop the attack.
A CyberLab SSH auth.log forensics exercise with regex search and most frequent IP addresses
Log forensics. Search server auth logs with text or regular expressions and spot brute-force attempts and break-ins.
The TinyMCE CyberLab dialog choosing the Phishing e-mail laboratory with per-student seed and live preview
TinyMCE insert dialog. Pick from 27 ready exercises, choose per-student or fixed seed data and preview the lab.
A partially graded CyberLab quiz question with a personal flag step and a server-checked code fix step
Server-graded multi-step questions. Combine personal flags and code fixes with partial credit graded on the server.