nbgrader icon indicating copy to clipboard operation
nbgrader copied to clipboard

Release 0.9.0 breaks nbextensions

Open Adamtaranto opened this issue 10 months ago • 4 comments

Operating system

Ubuntu

Python

3.11

nbgrader --version

=>0.9.0

jupyter notebook --version

6.5.5

Expected behaviour

Trying to activate nbgrader extension with command: jupyter nbextension install --sys-prefix --py nbgrader

Expect this to call jupyter-nbextension and install nbgrader extension

Actual behaviour

When nbgrader =>v0.9.0 is installed jupyter-nbextension is missing and calling the command above generates the following error:

Available subcommands: console dejavu events execute fileid kernel kernelspec lab labextension labhub migrate nbclassic nbconvert notebook qtconsole run server troubleshoot trust

Jupyter command jupyter-nbextension not found.

Steps to reproduce the behaviour

Install nbgrader v0.9.0 jupyter-nbextension will be removed even if you previously had it installed from an earlier version.

Reverting to nbgrader v0.8.5 resolves the issue.

Adamtaranto avatar Sep 06 '23 12:09 Adamtaranto

nbgrader v0.9.0 requires Jupyter Notebook 7: https://github.com/jupyter/nbgrader/blob/main/pyproject.toml#L45

Are you sure you have notebook 6.5.5? How did you install nbgrader?

lahwaacz avatar Sep 06 '23 13:09 lahwaacz

Installed with pip3 install -r requirements.txt

Which installs:

nbgrader jupyter numpy pandas matplotlib biopython networkx regex

If I do this in a clean env notebook is 6.5.5

notebook 6.5.5 pypi_0 pypi

Adamtaranto avatar Sep 06 '23 15:09 Adamtaranto

Thanks @Adamtaranto for reporting this.

I can't reproduce it locally, pip3 install -r requirements.txt installs Jupyterlab 4 and Notebook 7 (which is expected). Notebook 7 is using labextensions system, and not nbextensions.

If you want to run nbgrader on Notebook<7 you should use the 0.8.5 version.


These are not dependencies of nbgrader:

numpy pandas matplotlib biopython networkx regex

I suppose you did not only install the requirement.txt of nbgrader.

Can you see the same issue when pulling nbgrader from github and running pip3 install -r requirements.txt again ?

brichet avatar Sep 06 '23 15:09 brichet

@Adamtaranto any update ? Should we close this issue ?

brichet avatar Nov 29 '23 16:11 brichet

Feel free to reopen it if there are any update.

brichet avatar Mar 21 '24 14:03 brichet