From 7165ed1bfddd5625c7156b544072e12fe41eb2da Mon Sep 17 00:00:00 2001
From: yostane <1958676+yostane@users.noreply.github.com>
Date: Sat, 24 Aug 2024 12:26:06 +0200
Subject: [PATCH] update quiz collector
---
.../result-explorer/demo01.ipynb | 1313 ++++++++++++++++-
.../main/kotlin/example/com/Application.kt | 6 +-
.../src/main/kotlin/example/com/Models.kt | 78 +-
.../main/kotlin/example/com/QuizCollector.kt | 13 +-
4 files changed, 1349 insertions(+), 61 deletions(-)
diff --git a/material/rest-api-ui-ktor-quiz-collector/result-explorer/demo01.ipynb b/material/rest-api-ui-ktor-quiz-collector/result-explorer/demo01.ipynb
index 367f42c7..ca9a8e5a 100644
--- a/material/rest-api-ui-ktor-quiz-collector/result-explorer/demo01.ipynb
+++ b/material/rest-api-ui-ktor-quiz-collector/result-explorer/demo01.ipynb
@@ -3,9 +3,7 @@
{
"cell_type": "markdown",
"metadata": {},
- "source": [
- "# Quiz collector with kandy"
- ]
+ "source": "# Quiz collector with kandy"
},
{
"cell_type": "code",
@@ -14,13 +12,33 @@
"languageId": "python"
},
"ExecuteTime": {
- "end_time": "2024-08-23T22:10:39.416441300Z",
- "start_time": "2024-08-23T22:10:34.053252400Z"
+ "end_time": "2024-08-24T10:23:18.959803600Z",
+ "start_time": "2024-08-24T10:23:13.328613100Z"
}
},
"source": [
+ "// Without specifying %useLatestDescriptors, the version included in the Kotlin Jupyter kernel will be used.\n",
+ "%useLatestDescriptors \n",
"%use kandy\n",
- "%use dataframe\n",
+ "%use dataframe"
+ ],
+ "outputs": [],
+ "execution_count": 90
+ },
+ {
+ "metadata": {},
+ "cell_type": "markdown",
+ "source": "## Collecting responses"
+ },
+ {
+ "metadata": {
+ "ExecuteTime": {
+ "end_time": "2024-08-24T10:23:19.179801200Z",
+ "start_time": "2024-08-24T10:23:18.975805100Z"
+ }
+ },
+ "cell_type": "code",
+ "source": [
"val df = DataFrame.read(\"http://localhost:8080/responses\")\n",
"df"
],
@@ -28,7 +46,7 @@
{
"data": {
"text/html": [
- " \n",
" \n",
"