Closed wallscheid closed 4 years ago
Generation of "emptied" solution files that act as templates is perfectly possible with nbgrader, just enclosing stuff that needs to be hidden with "### BEGIN SOLUTION" and "# END SOLUTION".
Not sure what happens with travis-generated content, though. I think it can be commited next to the solution files with a small script in travis, then we would have a travis commit after each of our commits
Does the enclosing works also for markdown? If not, how do we mark solutions there?
Ok this is the instruction list:
Install nbgrader with
conda install jupyter
conda install -c conda-forge nbgrader
(do not use pip!)
Get the folder structure right, such that nbgrader can work:
For each exercise solution notebook:
View
> Cell toolbar
> Create Assignment
### BEGIN SOLUTION
and ### END SOLUTION
.Generate the template from the solution with nbgrader generate_assignment "<<exercise name>>"
,
e.g. nbgrader generate_assignment "ex01"
I can go ahead and start with point 2 but I will need assistance for point 3 and all exercises except 1 and 8. The generation of the templates (point 4) from the solutions can be outsourced to TravisCI as soon as we have 1-3 finished.
all templates are generated and readmes were created.