mogs: marimo + Gradescope
Gradescope-compatible Marimo autograder. Alternative to Otter-Grader
Install uv. Then:
uv tool install mogsThe command is mogs.
Create an assignment (replace <name> with your assignment name) and edit it in marimo's editor:
mogs init <name>
mogs edit <name>This will create a directory called <name> with <name>.py inside.
You can change <name>.py if you want.
This Python file is a marimo notebook and it has a short guide and two example questions (see docs; full example here).
Say the assignment is in the directory demo, with the notebook demo/hw.py.
Then:
mogs build demoIn demo/dist/student, it will output hw.zip.
It contains the student notebook (hw.py), its public tests (tests/), and any data attached to the notebook (if any).
Distribute it to your students.
Refer your students to https://mogs.kristia.de/students/.
In demo/dist/autograder, it will output hw-autograder-*.zip and hw.py.
Upload the former to Gradescope.
The file hw.py here is like the one in the student zip, but with full solution.
It's useful to check the autograder on Gradescope.
More info: https://mogs.kristia.de
make check # ruff, ty, pytest
make docs # build the docs site into docs/distmogs is not affiliated with or endorsed by marimo or Gradescope.