This directory contains a few example demonstrating how to configure nbgrader to run with JupyterHub. In all cases, it is assumed that you are running JupyterHub directly a single server (i.e. these demos do not cover distributed or containerized setups).
demo_one_class_one_grader
: a demo showing how to configure nbgrader if you only have a single class with only one grader. The instructor account is calledinstructor1
and the student account isstudent1
.demo_one_class_multiple_graders
: a slightly more complex setup, in which you have multiple graders for the same class. There are accounts forinstructor1
,instructor2
, andstudent1
.demo_multiple_classes
: the most complex setup, in which you have multiple classes on the same machine (possibly with multiple different graders per class as well). There are accounts forinstructor1
(who grades forcourse101
),instructor2
(who grades forcourse123
), andstudent1
(who by default is not enrolled in any classes).
To run a demo, you will need root access to a server (let's call it
demo-server
). From your laptop, run:
./deploy_demos.sh root@demo-server
This will install the demo files on your server. Then, SSH to the server and run
the restart_demo.sh
script to actually launch the demo. For example, to run
demo_one_class_one_grader
:
ssh root@demo-server
./restart_demo.sh demo_one_class_one_grader
If all goes well, you should then be able to access JupyterHub from port 8000 on your demo server. The passwords for the accounts are the same as the usernames.