Closed chrismgraham closed 2 months ago
The recent commit to allow a context ID for resources works well in an exam, but seems that files aren't loaded when tested individually if the context ID is greater than 0 (example: https://numbas.mathcentre.ac.uk/question/155604/chris-s-copy-of-load-a-question-resource-file-in-python-or-r/)
That's why I said to use question.number as the context ID instead of hard coding it.
question.number
Ahhh, got it!
The recent commit to allow a context ID for resources works well in an exam, but seems that files aren't loaded when tested individually if the context ID is greater than 0 (example: https://numbas.mathcentre.ac.uk/question/155604/chris-s-copy-of-load-a-question-resource-file-in-python-or-r/)