/text2qti_example

text2qti_example

Primary LanguagePython

Example text2qti quiz

Setup

bash build_venv.sh
sh venv/bin/activate

Generate the quiz

PYTHONPATH=. text2qti --run-code-blocks --pandoc-mathml quiz.md

Upload the resulting quiz.zip to Canvas by whatever means your campus has for that. Here, we have "sandbox" courses, which are fake Canvas courses. I upload to those to test-drive everything first.

For me, I see this when I preview the quiz:

Details

  • text2qti does the heavy lifting.

  • The custom_rounding.py uses tricks from finance to ensure rounding. This is necessary because:

    • Computers use IEEfp to round.
    • Biology students typically round incorrectly, defaulting to "half rounds up" rather than the correct "round to even".
    • The module sets to "half rounds up" rather than trying to teach loads of students how to round properly.
  • The copyright notice for each question should keep the material off of Chegg, Course Hero, etc., who claim to use image recognition to reject such material.

  • The chi-squared calculator is an observable notebook. David Kirkby here at UCI introduced me to this. My notebooks are here. The trick is to use the "embed" feature, select the desired UI elements, and then press Copy.