13 Demonstration and exercises
LabQuiz: A suite of tools for integrating quizzes into Jupyter notebooks
Explore the demo notebook labQuizDemo.ipynb available in the extras directory and experiment. You can also use the live binder version or even the jupyterlite version available here
If you want to go further, and if you’ve made it this far, you’re probably motivated, so here are a few ideas.
Exercise: Create a Google Sheet named
MyFirstGSQuizby following the instructions in Section 10.1. Change the read password in the first line of the script accessible via Extensions/Apps Script, then deploy. Note the deployment address and password.Exercise: Load or create a question database in
quiz_editor. Add a few questions. Save the new file. Export an HTML version and an AMC version. Upload the HTML to your account and test (or test locally).Exercise: Export an encrypted version of your questions (note the password and update it in the Google Sheet, Config page) .
Exercise: Create a Jupyter notebook, import labquiz, instantiate a quiz, -- see Section 3.2, integrate a few questions and test.
Exercise: Instantiate a quiz linked to the URL of your Google Sheet, integrate a few questions into your notebook, and check that the answers appear in the Google Sheet.
Exercise: Use
quiz_dashto read the results. Change the settings in your notebook (changemode_examenfrom True to False, modifyretries), and see if this triggers an alert. Run the correction on your few tests.Exercise: Create a jupyterlite version as explained in Section 11.1, add your files, upload it to your info account in
public_html, and check by connecting to the corresponding web address.