{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Demonstration of how to Preserve Student Responses in JupyterQuiz\n", "\n", "JupyterQuiz can now offer support for preserving student responses (for submission and grading, for instance). The functionality is not perfect because of limitations on feeding data from JavaScript back to Python in JupyterLab -- this is a big change since Jupyter Notebook. (This can be worked around if a Plug-In is used, but I do not want to require that.)\n", "\n", "To preserve responses requires a little prep from the notebook designer and a little extra work by the student -- detailed instructions for the student are provided.\n", "\n", "See below for a simple example:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "tags": [ "remove-input" ] }, "outputs": [], "source": [ "from jupyterquiz import display_quiz\n", "\n", "git_path=\"https://raw.githubusercontent.com/jmshea/jupyterquiz/main/examples/\"" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "display_quiz(git_path+\"questions.json\", preserve_responses = True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*Replace me*" ] } ], "metadata": { "finalized": { "timestamp": 1622215912635, "trusted": true }, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.12" } }, "nbformat": 4, "nbformat_minor": 4 }