jupyter / nbgrader

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

Installation: nbgrader menus don't show up in jupyterhub #1681

Closed kliegr closed 2 years ago

kliegr commented 2 years ago

Operating system

Ubuntu 20.04.5 LTS

nbgrader version

0.8.1

jupyterhub version (if used with JupyterHub)

1.5.0 20220918101831

jupyter notebook --version

6.4.12

Expected behavior

after pip install nbrader the Jupyter hub web UI contains Formgrader, Courses and Assignment menus

Actual behavior

Neither of the nbgrader-specific menus shows up

Steps to reproduce the behavior

I have also tried installing with "sudo" and activating the server extensions manually as described in https://nbgrader.readthedocs.io/en/stable/user_guide/installation.html with no result. No error is reported during the installation or activation of the extensions.

brichet commented 2 years ago

Thanks for reporting this issue.

Are you running it in Classic Notebook or JupyterLab ?

Can you copy the return of the following commands :

jupyter nbextension list

and

jupyter labextension list
kliegr commented 2 years ago

Thanks for looking at this. We are running it JupyterHub, where we get: image

But we would expect (and get on another older installation): image

The results of the commands (on server where the menus don't show up):

jupyter nbextension list

Known nbextensions: config dir: /home/xxx/.jupyter/nbconfig notebook section create_assignment/main enabled

JupyterLab v3.4.6 /home/xxx/.local/share/jupyter/labextensions nbgrader v0.8.1 enabled OK (python, nbgrader)

/usr/local/share/jupyter/labextensions jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments) @jupyter-widgets/jupyterlab-manager v5.0.3 enabled OK (python, jupyterlab_widgets)

brichet commented 2 years ago

Look like the extensions are enabled.

Do the extensions work if you run jupyter notebook or jupyter lab, without going through JupyterHub?

If it works, maybe you can take a look at the demos directory for the settings of nbgrader with JupyterHub.

kliegr commented 2 years ago

Hi, we resolved this. It looks like this was caused by a mismatch between the version of nbgrader and the changes in configuration files between nbgrader versions 0.7.1 a 0.8.0.