very hard time configuring course_id path and exchange directory
moctarjallo opened this issue · comments
Configuration feature:
We all the time spend lot of time configuring things that don't always work anytime we setup a new course.
Would you provide a docker image ready to use with all the configurations for example the exchange directory and so on ?
Thanks.
A docker image is almost certainly not what you want, in reality.
The default exchange works by users copying files to/from a central directory.... which is essentially saying that all the users are logging into the same computer.
Docker is essentially the opposite of this: every user gets their own computer to work with... so users share no common file-space.
Have a quick look at https://github.com/edina/nbexchange/blob/master/README.md#what-is-nbexchange to see if that helps explain things
I think you misunderstand a docker container....
Docker containers are frozen images, designed to me spin up & thrown away.
The amount of additional config you'd need to add to the basic image.... you'd be easier learning how to configure c.Exchange.root
I second that. It would be super useful to have a tutorial on setting up nbgrader with a JupyterHub server.
@moctarjallo, not sure if this will help with you specific issue but I have found it useful to include these line in the nbgrader_config.py
file as a minimal way to get things running.
import tempfile
c.Exchange.root = tempfile.mkdtemp()
c.CourseDirectory.course_id = 'YOUR_COURSE_ID_HERE'