sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 211 forks source link

nbgrader:extra folders not copied when creating student version of notebook #4728

Open DataScienceUWL opened 4 years ago

DataScienceUWL commented 4 years ago

For example, most of my assignments include an images folder that doesn't get copied into the student directory that is copied into the student projects when distributing the assignment.

williamstein commented 4 years ago

Only the students/ subdirectory is copied to students. You'll have to copy the images directory into that subdirectory manually. I can't think of any possible way to solve the problem of copying things safely from the assignment folder into the student/ subdirectory. There could be all kinds of content in the assignment folder, e.g,. answer keys, other ipynb notebooks etc. I'm closing this since it seems unsolvable to me (re-open it or comment further if have a different approach)...

DataScienceUWL commented 4 years ago

I was thinking that the behavior should be similar to that of regular assignment folders where the entire folder gets copied into the student's container.

In the case of nbgrader the entire folder (minus the student folder) gets copied except with the student version substitutes for the original notebook.

williamstein commented 4 years ago

Makes sense.

williamstein commented 1 month ago

Regarding "You'll have to copy the images directory into that subdirectory manually." it's now the case the the images are stored as blobs in a blobstore (just like here on GitHub), rather than subfolder. So the problem that you hit that motivated this issue is gone.