-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filter course list dropdown menu #1857
Labels
Comments
If I understand nbgrader correctly, this dropdown menu is based on user groups and roles configured in JupyterHub database. As this is global to JupyterHub, I don't see a way how you could modify this according your spawner options... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am using nbgrader together with z2jh for multiple courses where each course has its own configuration (GPU, CPU, RAM, docker image, etc.). each user (students & instructors) may be registered in multiple courses, therefore in order to spawn the correct course & its configuration, before spawning their pod I ask them within
options_form
to choose their course. then in thepre_spawn_hook
I useuser_options
to spawn the correct course. But within the nbgrader assignment list (as shown in the attached picture) they have still the possibility to change the course (while spawner is spun for another course!).I was wondering how I can avoid this. how can I override the function in nbgrader that generates this dropdown courselist menu? how can I pass the correct courses to this menu?
best
![img-nbgrader](https://private-user-images.githubusercontent.com/40822487/297075526-4e13cc09-ac7b-431c-a013-e8a95a62a9ce.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyMjY5MzksIm5iZiI6MTcyMzIyNjYzOSwicGF0aCI6Ii80MDgyMjQ4Ny8yOTcwNzU1MjYtNGUxM2NjMDktYWM3Yi00MzFjLWEwMTMtZThhOTVhNjJhOWNlLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDE4MDM1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxNmQwM2E3M2Q4MTY2NDAwNmM5MmViYjdkZTM2ODRmNzg2NWNiMzcxMTA2Njk4OTY1NDAyYTU2Y2Y1ZDM4MTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-HJqFyaHNEdMKogiO37LWNFq8iE6ICtNSAlPIWDXMyU)
The text was updated successfully, but these errors were encountered: