CodeLab Viewer: Edit and Run Program Examples

Turns program examples inserted with CodeLab for TinyMCE 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 CodeLab on codelab.tsp.edu.rs as a guest (Python runs in the browser), or sign in with teacher or student (password Demo-2026) for every language, the debugger and SQL. Reset nightly.

Important: after installing, switch the filter On in Site administration, Plugins, Filters, Manage filters.


What's New in v1.18.0


Core features


The CodeLab plugins


Requirements


Privacy

For Class view the filter stores each student's latest copy of an example and last run status; the Moodle Privacy API exports and deletes them. Copies are also kept in browser local storage. Programs and input are sent to the configured server in CodeLab for TinyMCE, or run locally for browser Python.


Developed by Boban Blagojević. 29 languages: en, sr_lt, sr_cr, de, fr, es, it, pt, pt_br, pl, hr, bs, sl, mk, sk, cs, tr, nl, ru, uk, ro, hu, bg, el, sq, ja, zh_cn, ko, ar.
Source and issues: github.com/blagojevicboban/moodle-filter_codelab
Licensed under the GNU GPL v3 or later.