Skip to content

Jelleas/ci_checks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to write CI assignments/checks

First:

pip install jupyter
pip install pandas
pip install nbgrader

Then install nbgrader notebook plugins:

jupyter nbextension install --user --py nbgrader --overwrite
jupyter nbextension enable --user --py nbgrader
jupyter serverextension enable --user --py nbgrader

Create the assignment as you normally would by creating a new notebook. While writing the assignment, remember to lock the cells you don't want students to change by marking them as read-only. Mark every cell that students write in as an "Autograded answer" and give those cells a recognizable ID. check50 can then look for these IDs.

You can make use of the nbgrader feature to hide solutions by surrounding them with ### BEGIN SOLUTION and ### END SOLUTION. Just remember to run the command below to generate the student version without the solutions:

nbgrader generate_assignment --CourseDirectory.source_directory=. --CourseDirectory.release_directory=release/. --assignment=.

This will take the assignment in the current directory and generate the student version in a folder called release. You do not need to setup an nbgrader environment! :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages