Demo¶
For this demo, you need to setup a clean environment using JupyterHub + nbgrader + ngshare. .. You can use the [minikube testing setup](/testing#testing-setup) to do it easily.
Creating Course¶
- Login as user “admin”.
- Open a terminal using “New -> Terminal”
- Create a course with two instructors using
ngshare-course-management create_course ECS193 kevin abigail
Adding Students¶
- Login as user “kevin”.
- Open a terminal using “New -> Terminal”
- Add students to the course using
ngshare-course-management add_student ECS193 lawrence -f lawrence_first -l lawrence_last -e lawrence@email
ngshare-course-management add_student ECS193 eric -f eric_first -l eric_last -e eric@email
- Create a new file with “New -> Text File”, name it
nbgrader_config.py
and add the following content:
c.CourseDirectory.course_id = "ECS193"
- Go to “Control Panel”, click on “Stop My Server”
- Click on “Start My Server”
- Go to “Formgrader -> Manage Students”. You should see the two students created before.
Releasing Assignment¶
Make sure you are logged in as user “kevin”.
Go to “Formgrader -> Manage Assignments”.
Click “Add new assignment…”.
Click on the name of the assignment you just added.
“New -> Notebook -> Python 3”, and edit the notebook as in normal nbgrader.
- Add some code to the block.
- “View -> Cell Toolbar -> Create Assignment”.
- Select “Autograded answer”.
- …
- Save notebook.
Click the button under “Generate” in Formgrader.
Click the button under “Release”.
Doing Assignment¶
- Login as user “lawrence” (you may want to use incognito mode).
- Go to “Assignments” tab.
- Click “Fetch” for the new assignment.
- Click on the assignment name and the ipyndb name to open the homework.
- Do your homework.
- Click “Submit” in “Assignments -> Downloaded assignments”.
Grading Assignment¶
- Make sure you are logged in as user “kevin”.
- Go to “Formgrader -> Manage Assignments”.
- Click the button under “Collect” in Formgrader.
- You should see “1” under “# Submissions”. Click on this number.
- Click the button under “Autograde” in Manage Submissions.
- Click Student Name, and then the notebook name to open the submission.
- Write some feedback for the student.
- Click “Next” at upper right corner.
- Go back to “Manage Assignments”.
- Click the button under “Generate Feedback”.
- Click the button under “Release Feedback”.
Viewing Feedback¶
- Make sure you are logged in as user “lawrence”.
- Under “Assignments”, click “Fetch Feedback”
- Click “(view feedback)”.
- Click notebook name.
- Now you can see the html feedback.