nbgrader
nbgrader copied to clipboard
Language support
I would like to add language support for Octave kernel. And make it easier to add more languages and not have the code that checks for errors in two places like it is now in validator._extract_error and utils.determine_grade
You can see the code in this PR I just made that describes the changes better: #1038
Is there more that needs to be done on this? I'm not sure I know what you have in mind by adding additional language support for Octave.
Hey @BertR, hope you are doing well. I am just checkin, are you guys using Octave assignments at Noteable? I remember someone mentioning using Octave at their school during the Hackathon but can't remember who it was. In any case, did you guys change the grader when you are validating notebooks with Octave for example ? You can see the problems I had with trying to validate with Octave assignments here and you can see some of the fixes I did in #1038 but I am not sure I will include them all if I do another one.
Noteable definitely uses nbgrader with Python
, R
, Sage
, and Stata
.
We have, in the past, used it with Haskell
too.
The solution is using the ClearSolutions.xxx
settings in your nbgrader_config.py
file
Eg:
#-----------------------------------------------------
# config chages to allow nbgrader to work with stata
# NOTE: this *stops* python stuff working!
#-----------------------------------------------------
c.ClearSolutions.code_stub = dict(
stata = '* YOUR CODE HERE\nerror 192'
)
c.ClearSolutions.begin_solution_delimeter = "* BEGIN SOLUTION"
c.ClearSolutions.end_solution_delimeter = "* END SOLUTION"