jupyter / nbgrader

A system for assigning and grading notebooks
https://nbgrader.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.28k stars 316 forks source link

Multicourse Setup - Students see all classes not just ones enrolled in using jupyterhub auth #1663

Open whositwhatnow opened 2 years ago

whositwhatnow commented 2 years ago

JH 1.4.2 NBGrader 0.6.1

Following instructions from https://nbgrader.readthedocs.io/en/stable/configuration/jupyterhub_config.html#jupyterhub-authentication

My multiclass setup works no problem I just want to be able to get only users to see the courses they are added in. Students are added into the DB (DB using postgresql)

I've added 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

Released assignments do not come up in the assignments list, when i remove this file they show up. I can't figure out why its not pulling the assignments only for the courses the students are enrolled in.

brichet commented 6 months ago

@whositwhatnow sorry for late response. Did you find a way to achieve it ?