Skip to content
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

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

Open
ovasty opened this issue May 25, 2024 · 2 comments
Open

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

ovasty opened this issue May 25, 2024 · 2 comments
Labels

Comments

@ovasty
Copy link

ovasty commented May 25, 2024

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
Copy link
Contributor

shreve commented Jul 3, 2024

  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:

@flyforfreedom
Copy link

I hava a similar setup and that also confused me a lot, thanks @shreve for clarification. But I am still not clear about "Both servers will need an nbgrader_config.py file". Who will read nbgrader_config.py file if I didn't install nbgrader in Jupyterhub docker images? In my case I try to install ngshare in Jupyterhub container, ngshare_exchange and nbgrader in JupyterLab based images, but when I fetch course from Jupyterlab menu, logs showed: Formgrader not available at URL: https://hub.***.***/service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants