Skip to content
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

Open
bpfrd opened this issue Jan 16, 2024 · 1 comment
Open

filter course list dropdown menu #1857

bpfrd opened this issue Jan 16, 2024 · 1 comment

Comments

@bpfrd
Copy link

bpfrd commented Jan 16, 2024

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 the pre_spawn_hook I use user_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

@bpfrd bpfrd changed the title wrong course list dropdown menu filter course list dropdown menu Jan 16, 2024
@lahwaacz
Copy link
Contributor

lahwaacz commented Feb 3, 2024

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
Projects
None yet
Development

No branches or pull requests

3 participants