earthlab / hub-ops

Infrastructure and operations for the Earth Lab JupyterHub
https://earthlab-hub-ops.readthedocs.io/en/latest/
4 stars 8 forks source link

nbgrader-hub for the spring #318

Open lwasser opened 3 years ago

lwasser commented 3 years ago

let's do a few things to adjust the hub. i'm also including instructions for setting up nbgrader on the hub here which can go into the docs

SETUP Nbgrader on the hub

  1. Make a folder called .jupyter/ in the main directory (where the files are) /home/jovyan/.jupyter
  2. Create a nbgrader_config.py within the .jupyter/ directory

Then add the contents below to initialize the folder to recognize

c = get_config()
c.CourseDirectory.root = '/home/jovyan/<path>/<to-nbgrader-dir>'
c.Exchange.root = '/home/jovyan/<path>/<to-nbgrader-dir>/tmp/exchange'
# The ID needs to be set for the exchange to work properly
c.CourseDirectory.course_id = 'ea-bootcamp-fall-2020-nbgrader'
# This sets the header for each notebook generated through the GUI
c.IncludeHeaderFooter.header = "source/header.ipynb"
  1. Make sure tmp/exchange directories both exist on the hub at a path specified above or any path just modify the config file accordingly.

INStALL ZIP

we need to ensure ZIP is in the docker image to make sure we can download / back up files on the hub

lwasser commented 3 years ago

ahhh i think this is a setup item that i want us to add to our docker image so nbgrader just works next time we setup the grading hub.