Skip to content

smartPhysics conversion tool

Note

This documentation was sourced from contrib/question_converters/smart-physics/README.md.

This converts multiple choice questions from smart.physics XML format to the PrairieLearn directory question structure. Each question will automatically be given a UUID.

Command line usage:

smartphysics-to-pl.py [xml file] [PrairieLearn question name]

Note: The question may require some cleanup.

Known problems include '{' characters in LaTeX formulas (which get replaced indiscriminately), and images, which are just ignored.

If you want to convert free-answer questions (e.g. homework questions), the main difference would be to change write_question().