-
Notifications
You must be signed in to change notification settings - Fork 327
Create Assignment tab appears when disabled #1645
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
Comments
Hello, any idea to why the "Create Assignment" tab is available (and allows create assignments) even when I run:
or
or
or
?? Thanks !! |
Hello, |
@brichet thanks for your answer. When I spawn the jupyterlab pod as an instructor, I have only 1
with its contents being:
These contents is what is to be expected after the 3 extensions are disabled in the Dockerfile (see my first message above), but later on in a bootstrap script they are enabled only if the NB_USER is an instructor:
In this case (logging in as an instructor) the Nbgrader menu within the Jupyterlab top menu contains:
And the Create Assignment tab in the right side bar is there, working as expected. So when I log in as an Instructor, all extensions are enabled and accessible through their corresponding menus / tabs. On the other hand, when I log in as a student, the disabled extensions in the Dockerfile should still be disabled, as are NOT reenabled in the bootstrap script, and indeed the only
has next contents, as expected:
and also, the Nbgrader top menu now only includes the submenu:
(not Formgrader, not Course List)... BUT... the So individually disabling / enabling nbgrader extensions for jupyterlab works... for all extensions except for I hope we can find what is happening here, as I cannot allow students have access to Create Assignments. Thanks !! |
Hi, |
Thank you @brichet Yes, the problem is solved by using the proper name of the extension. My mistake. I was checking the documentation for 0.7.1 where underscores are used, and not the documentation for 'main', and I assumed the underscore for jupyterlab extensions too. I might have updated the underscore for hyphen after seeing some examples somewhere, but I did not realize I did not updated it also for the create assignment extension. Also I noticed that jupyter server extensions are named using underscores, while jupyter labextension is using hyphens now. I do not know if there's a reason for not keeping the same criteria always, but for inexperienced users like me it is a bit confusing. Thanks again ;) |
Operating system
Ubuntu 20.04 within k8s single user pod spawned by jupyterhub pod.
nbgrader --version
nbgrader version 0.8.0a2
jupyterhub --version
(if used with JupyterHub)Image jupyterhub is
jupyterhub/k8s-hub:1.1.3-n616.he76e1e57
jupyter notebook --version
6.4.12
jupyter lab --version
3.4.3
Expected behavior
In JupyterLab, when logging in as an instructor:
Create Assignment
tab in the right sidebar is open when clicking on it, and it allows instructors to create assignments.In JupyterLab, when logging in as a student:
Create Assignment
tab in the right sidebar should not appear, as students cannot create assignments.Actual behavior
In JupyterLab, when logging in as an instructor:
Create Assignment
appears and allow instructors to create assignments.In JupyterLab, when logging in as a student:
Create Assignment
tab in the right sidebar still appears, and shouldn't, as it allows students to create assignments.Steps to reproduce the behavior
Next are relevant contents in Dockerfile to install nbgrader:
Later, at single user boot time (when spawned), a bootstrap script executes next:
The text was updated successfully, but these errors were encountered: