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

How to install nbgrader when using jupyterhub with DockerSpawner? #1887

Open ovasty opened 6 months ago

ovasty commented 6 months ago

Operating system

CentOS 7.9

nbgrader --version

0.9.2

jupyterhub --version (if used with JupyterHub)

5.0.0

jupyter notebook --version

7.2.0

Expected behavior

Install nbgrader for JupyterHub with DockerSpawner (Docker image is JupyterLab)

Actual behavior

Don't know how to install it.

  1. Under Jupyterhub server, what should be installed?
  2. In the JupyterLab image, what should be installed?
  3. How to config nbgrader for the two environments?

Steps to reproduce the behavior

shreve commented 4 months ago
  1. Your JupyterHub server doesn't need nbgrader. It will likely need some config to make sure that it launches Jupyter singleuser servers have access to the exchange directory.
  2. Your JupyterLab (singleuser) server will need the nbgrader package (e.g. pip install nbgrader) and access to the exchange directory.
  3. Both servers will need an nbgrader_config.py file with appropriate config based on your setup.

Here are some docs you'll hopefully find helpful: