CodeLab Viewer: Edit and Run Program Examples

Turns program examples inserted with tiny_codelab into code editors that readers can edit and run, in pages, books, forums and quiz text.

Moodle Plugin CI Moodle 4.5 to 5.3 License GPL v3

Live demo: try the CodeLab plugins on codelab.tsp.edu.rs. Look around as a guest (Python runs in the browser), or use the demo accounts teacher and student (password Demo-2026) to run every language, the debugger and SQL. Everything is reset every night.

Important: after installing, switch the filter On in Site administration, Plugins, Filters, Manage filters. Until then, readers see the examples as plain code and cannot edit or run them.


What's New in v1.16.0


Core features


The CodeLab plugins


Requirements


Privacy

For the class view the filter keeps the last changed copy of an example of each student with the result of its last run; the Moodle Privacy API exports and deletes these copies. The reader's copy also stays in the browser's local storage. Programs and their input are sent to the server set in tiny_codelab, Jobe or the CodeLab runner, to be compiled and run, and Python can run in the reader's browser.


Developed by Boban Blagojević. Languages: English, Serbian (Latin and Cyrillic) and 12 more: de, fr, es, it, pt, pl, hr, bs, sl, mk, sk, cs.
Source, documentation and issue tracker: github.com/blagojevicboban/moodle-filter_codelab
Licensed under the GNU GPL v3 or later.