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

very hard time configuring course_id path and exchange directory #1885

Open
moctarjallo opened this issue May 10, 2024 · 5 comments
Open

very hard time configuring course_id path and exchange directory #1885

moctarjallo opened this issue May 10, 2024 · 5 comments

Comments

@moctarjallo
Copy link

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.

@perllaghu
Copy link
Contributor

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

@moctarjallo
Copy link
Author

moctarjallo commented May 21, 2024 via email

@perllaghu
Copy link
Contributor

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

@moctarjallo
Copy link
Author

moctarjallo commented May 25, 2024 via email

@Adamtaranto
Copy link

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'

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

No branches or pull requests

3 participants