Skip to content

Get source and hierarchy of nbgrader_config.py files #1833

Answered by jeflem
joebathelt asked this question in Q&A
Discussion options

You must be logged in to vote

Had a look at my setup: There are only two nbgrader_config.py. A global one in /etc/jupyter/nbgrader_config.py:

from nbgrader.auth import JupyterHubAuthPlugin

c = get_config()

c.Exchange.path_includes_course = True
c.Authenticator.plugin_class = JupyterHubAuthPlugin
c.Exchange.root = '/opt/nbgrader_exchange'
c.NbGrader.logfile = '/share/jupyter/nbgrader.log' 

The second nbgrader_config.py is per course. For each course there is a separate user account running the formgrader service for JupyterHub. So for course test_course we have in /home/grader_test_course/.jupyter/nbgrader_config.py:

c = get_config()

c.CourseDirectory.root = '/home/grader_test_course/course_data'
c.CourseDirectory.…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@joebathelt
Comment options

Comment options

You must be logged in to vote
1 reply
@joebathelt
Comment options

Answer selected by joebathelt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants