Instructors: register at postcell.io, create a class, and click Sample config for a postcell.conf file carrying that class's instructor and class ids. Install the magic with pip install postcell.
postcell.conf
pip install postcell
Students: run pip install postcell, put your name in the student_id field of the postcell.conf file next to the notebook, and do the exercises. Students don't register on any website.
student_id
A notebook loads the magic with %reload_ext postcell followed by %postcell register, then each exercise cell begins with %%postcell exercise_name. There is an example project to start from.
%reload_ext postcell
%postcell register
%%postcell exercise_name
You need to enable JavaScript to read the full help page. About postcell.io.