Human readable course titles for multi-class nbgrader on JupyterHub #1797
+78
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Course list and assignment list extensions show nbgrader's
course_id
(and/or the formgrader service's name) in the GUI. A course'scourse_id
property has to be (at least) URL save if nbgrader is running in a multi-class JupyterHub setting. Thus, no white space, no specical characters (German umlauts, Chinese,...) allowed.This PR adds a
course_title
property to nbgrader courses and modifies course list and assignment list extensions (server/lab/nb) to showcourse_title
where appropriate. Usingcourse_title
for GUI (and for nothing else) allows for arbitrary course titles.If the new
course_title
property is not set, then behavior is as before (showcourse_id
). In single-class environments setc.CourseDirectory.course_title
to some string. In multi-class JupyterHub environments setThis PR closes #1795.
Tests pass.
Would be great if someone could carefully review this PR. It's my first contribution to nbgrader, maybe I missed something important.