Fixed: Nbgrader deprecated options
This commit is contained in:
		@@ -9,7 +9,7 @@ p_host = os.environ.get("POSTGRES_HOST", "postgres")
 | 
			
		||||
p_db = os.environ.get("POSTGRES_DB", "jupyterhub")
 | 
			
		||||
 | 
			
		||||
# NBgrader database URL
 | 
			
		||||
c.NbGrader.db_url = f"postgresql://{p_user}:{p_pass}@{p_host}:5432/{p_db}"
 | 
			
		||||
c.CourseDirectory.db_url = f"postgresql://{p_user}:{p_pass}@{p_host}:5432/{p_db}"
 | 
			
		||||
 | 
			
		||||
# Course configuration
 | 
			
		||||
course_id = os.environ.get("NBGRADER_COURSE_ID", "default_course")
 | 
			
		||||
@@ -19,7 +19,7 @@ c.CourseDirectory.root = "/srv/nbgrader"
 | 
			
		||||
# Exchange directory configuration
 | 
			
		||||
exchange_dir = os.environ.get("NBGRADER_EXCHANGE_DIRECTORY", "/srv/nbgrader/exchange")
 | 
			
		||||
c.Exchange.root = exchange_dir
 | 
			
		||||
c.Exchange.course_id = course_id
 | 
			
		||||
c.CourseDirectory.course_id = course_id
 | 
			
		||||
 | 
			
		||||
# Authentication
 | 
			
		||||
c.FormgradeApp.authenticator_plugin_class = "nbgrader.auth.JupyterHubAuthPlugin"
 | 
			
		||||
@@ -33,7 +33,7 @@ c.FormgradeApp.port = 9999
 | 
			
		||||
c.FormgradeApp.base_url = "/jupyter/services/nbgrader-formgrader/"
 | 
			
		||||
 | 
			
		||||
# Enable tornado debug mode for development
 | 
			
		||||
# c.FormgradeApp.tornado_settings = {'debug': True}
 | 
			
		||||
c.FormgradeApp.tornado_settings = {"debug": True}
 | 
			
		||||
 | 
			
		||||
# Assignment settings
 | 
			
		||||
c.AssignmentListApp.assignment_dir = "/home/jovyan/assignments"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user