GithubHelp home page GithubHelp logo

Comments (4)

wkirgsn avatar wkirgsn commented on August 10, 2024

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

from reinforcement_learning_course_materials.

Webbah avatar Webbah commented on August 10, 2024

Does the enclosing works also for markdown?
If not, how do we mark solutions there?

from reinforcement_learning_course_materials.

wkirgsn avatar wkirgsn commented on August 10, 2024

Ok this is the instruction list:

  1. Install nbgrader with
conda install jupyter
conda install -c conda-forge nbgrader

(do not use pip!)

  1. Get the folder structure right, such that nbgrader can work:

    • exercises/
      • nbgrader_config.py # configuration
      • templates/ # destination for autogenerated templates
      • solutions/ # actual source code (solutions with markers)
        • ex1/
        • ex2/
          ...
  2. For each exercise solution notebook:

    • Open the notebook and click on View > Cell toolbar > Create Assignment
      • This enables assigning types and points to each cell
    • Mark task templates with "read-only", solution markdown with "manually graded answer", and solution code with "autograded answer", where solution lines are enclosed with ### BEGIN SOLUTION and ### END SOLUTION.
  3. 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.

from reinforcement_learning_course_materials.

wkirgsn avatar wkirgsn commented on August 10, 2024

all templates are generated and readmes were created.

from reinforcement_learning_course_materials.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.