Getting the source code¶
The source files for nbgrader and its documentation are hosted on GitHub. To clone the nbgrader repository:
git clone https://github.com/jupyter/nbgrader cd nbgrader
Installing and building nbgrader¶
nbgrader installs and builds with one command:
pip install -r dev-requirements.txt -e .
Currently, building docs is not supported on Windows because some of the dependencies (enchant) are not easily installable. Instead of the above command, run the following on windows:
pip install -r dev-requirements-windows.txt -e .
Installing notebook extensions¶
Previously this was done using the
nbgrader extension install command.
However, moving forward this is done using the
jupyter nbextension and
jupyter serverextension commands.
jupyter nbextension install --symlink --sys-prefix --py nbgrader jupyter nbextension enable --sys-prefix --py nbgrader jupyter serverextension enable --sys-prefix --py nbgrader
To work properly, the assignment list and formgrader extensions require both the nbextension and serverextension. The create assignment extension only has an nbextension part.