This notebook tests and demonstrates the jupyterquiz library and its use. It draws from a set of example questions that show the supported capabilities of the jupyterquiz library.
In particular, this notebook also serves to test different ways for the library to load questions:
jupyterquiz supports drawing a random subset of questions, and that is also tested.
from jupyterquiz import display_quiz git_path="https://raw.githubusercontent.com/jmshea/jupyterquiz/main/examples/"
import json with open("examples/questions.json", "r") as file: questions=json.load(file) display_quiz(questions)
# #Leave this here for when doing question development # import json # with open("examples/questions.json", "w") as file: # json.dump(questions, file, indent=4)