diff --git a/material/rest-api-ui-ktor-quiz-collector/result-explorer/demo00.ipynb b/material/rest-api-ui-ktor-quiz-collector/result-explorer/demo00.ipynb
index eae59509..8c132a78 100644
--- a/material/rest-api-ui-ktor-quiz-collector/result-explorer/demo00.ipynb
+++ b/material/rest-api-ui-ktor-quiz-collector/result-explorer/demo00.ipynb
@@ -11,12 +11,13 @@
}
},
"source": [
- "# Hello Jupyter Kotlin"
+ "# Hello Jupyter Kotlin\n",
+ "This is markdown cell. You can write markdown in Jupyter notebook. You can also write code in Kotlin. Let's write a simple code in Kotlin."
]
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 2,
"metadata": {},
"outputs": [
{
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 a03a46e5..b1d2ee28 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
@@ -9,20 +9,27 @@
},
{
"cell_type": "code",
- "execution_count": 29,
"metadata": {
"ExecuteTime": {
- "end_time": "2024-08-24T11:14:19.583192900Z",
- "start_time": "2024-08-24T11:14:12.242893300Z"
+ "start_time": "2024-08-29T07:34:03.349088700Z"
}
},
- "outputs": [],
"source": [
"// Without specifying %useLatestDescriptors, the version included in the Kotlin Jupyter kernel will be used.\n",
"%useLatestDescriptors\n",
"%use kandy\n",
"%use dataframe"
- ]
+ ],
+ "outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "The execution was interrupted"
+ ]
+ }
+ ],
+ "execution_count": null
},
{
"cell_type": "markdown",
@@ -33,65 +40,26 @@
},
{
"cell_type": "code",
- "execution_count": 30,
"metadata": {
- "ExecuteTime": {
- "end_time": "2024-08-24T11:14:19.925191Z",
- "start_time": "2024-08-24T11:14:19.603194600Z"
- },
"notebookRunGroups": {
"groupValue": "1"
+ },
+ "ExecuteTime": {
+ "end_time": "2024-08-29T07:34:11.912960400Z",
+ "start_time": "2024-08-29T07:31:04.404062800Z"
}
},
+ "source": [
+ "val df = DataFrame.read(\"http://localhost:8080/responses\")\n",
+ "df"
+ ],
"outputs": [
{
"data": {
- "application/kotlindataframe+json": {
- "columns": [
- "What is the primary goal of Kotlin Multiplatform?",
- "How does Kotlin Multiplatform facilitate code sharing between platforms?",
- "Which platforms does Kotlin Multiplatform support?",
- "What is a common use case for Kotlin Multiplatform?",
- "What is a shared code module in Kotlin Multiplatform called?",
- "How does Kotlin Multiplatform handle platform-specific implementations?",
- "What languages can be interoperable with Kotlin Multiplatform?",
- "What tooling supports Kotlin Multiplatform development?",
- "What is the benefit of using Kotlin Multiplatform for mobile development?",
- "How does Kotlin Multiplatform differ from Kotlin Native and Kotlin/JS?"
- ],
- "kotlin_dataframe": [
- {
- "How does Kotlin Multiplatform differ from Kotlin Native and Kotlin/JS?": "None",
- "How does Kotlin Multiplatform facilitate code sharing between platforms?": "By sharing business logic and adapting UI",
- "How does Kotlin Multiplatform handle platform-specific implementations?": "actual",
- "What is a common use case for Kotlin Multiplatform?": "Developing a cross-platform app",
- "What is a shared code module in Kotlin Multiplatform called?": "Shared module",
- "What is the benefit of using Kotlin Multiplatform for mobile development?": "and sharing",
- "What is the primary goal of Kotlin Multiplatform?": "To share",
- "What languages can be interoperable with Kotlin Multiplatform?": "Java, Swift",
- "What tooling supports Kotlin Multiplatform development?": "IntelliJ IDEA",
- "Which platforms does Kotlin Multiplatform support?": "Android, iOS, and web"
- },
- {
- "How does Kotlin Multiplatform differ from Kotlin Native and Kotlin/JS?": "Kotlin Multiplatform allows sharing code between different platforms using common modules.",
- "How does Kotlin Multiplatform facilitate code sharing between platforms?": "By sharing business logic and adapting UI",
- "How does Kotlin Multiplatform handle platform-specific implementations?": "Through expect and actual declarations",
- "What is a common use case for Kotlin Multiplatform?": "Developing a cross-platform app",
- "What is a shared code module in Kotlin Multiplatform called?": "Shared module",
- "What is the benefit of using Kotlin Multiplatform for mobile development?": "Code reuse and sharing",
- "What is the primary goal of Kotlin Multiplatform?": "To share code between multiple platforms",
- "What languages can be interoperable with Kotlin Multiplatform?": "Java, JavaScript, Swift",
- "What tooling supports Kotlin Multiplatform development?": "IntelliJ IDEA, Android Studio",
- "Which platforms does Kotlin Multiplatform support?": "Android, iOS, and web"
- }
- ],
- "ncol": 10,
- "nrow": 2
- },
"text/html": [
- " \n",
- "
\n",
- " \n",
" \n",
" \n",
- "
\n",
- "\n",
- "
DataFrame: rowsCount = 2, columnsCount = 10
\n",
- "
What is the primary goal of Kotlin Multiplatform?
How does Kotlin Multiplatform facilitate code sharing between platforms?
Which platforms does Kotlin Multiplatform support?
What is a common use case for Kotlin Multiplatform?
What is a shared code module in Kotlin Multiplatform called?
How does Kotlin Multiplatform handle platform-specific implementations?
What languages can be interoperable with Kotlin Multiplatform?
What tooling supports Kotlin Multiplatform development?
What is the benefit of using Kotlin Multiplatform for mobile development?
How does Kotlin Multiplatform differ from Kotlin Native and Kotlin/JS?
To share
By sharing business logic and adaptin...
Android, iOS, and web
Developing a cross-platform app
Shared module
actual
Java, Swift
IntelliJ IDEA
and sharing
None
To share code between multiple platforms
By sharing business logic and adaptin...
Android, iOS, and web
Developing a cross-platform app
Shared module
Through expect and actual declarations
Java, JavaScript, Swift
IntelliJ IDEA, Android Studio
Code reuse and sharing
Kotlin Multiplatform allows sharing c...
\n",
+ "
Which platforms does Kotlin Multiplatform support?
Which naming of KMP is deprecated?
At which Google I/O, Google announced first-class support for Kotlin on Android?
What is the name of the Kotlin mascot?
The international yearly Kotlin conference is called...
Where will be located the next international yearly Kotlin conference?
Android, iOS, desktop and web
Hadi Multiplatform
2014
Kotlinee
KotlinConf
Tokyo, Japan
\n",
" \n",
" \n",
" "
- ]
+ ],
+ "application/kotlindataframe+json": "{\"$version\":\"2.0.0\",\"metadata\":{\"columns\":[\"Which platforms does Kotlin Multiplatform support?\",\"Which naming of KMP is deprecated?\",\"At which Google I/O, Google announced first-class support for Kotlin on Android?\",\"What is the name of the Kotlin mascot?\",\"The international yearly Kotlin conference is called...\",\"Where will be located the next international yearly Kotlin conference?\"],\"nrow\":1,\"ncol\":6},\"kotlin_dataframe\":[{\"Which platforms does Kotlin Multiplatform support?\":\"Android, iOS, desktop and web\",\"Which naming of KMP is deprecated?\":\"Hadi Multiplatform\",\"At which Google I/O, Google announced first-class support for Kotlin on Android?\":\"2014\",\"What is the name of the Kotlin mascot?\":\"Kotlinee\",\"The international yearly Kotlin conference is called...\":\"KotlinConf\",\"Where will be located the next international yearly Kotlin conference?\":\"Tokyo, Japan\"}]}"
},
- "execution_count": 30,
+ "execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
- "source": [
- "val df = DataFrame.read(\"http://localhost:8080/responses\")\n",
- "df"
- ]
+ "execution_count": 9
},
{
"cell_type": "markdown",
@@ -443,16 +722,19 @@
},
{
"cell_type": "code",
- "execution_count": 31,
"metadata": {
- "ExecuteTime": {
- "end_time": "2024-08-24T11:14:20.162191700Z",
- "start_time": "2024-08-24T11:14:19.946198800Z"
- },
"notebookRunGroups": {
"groupValue": "2"
+ },
+ "ExecuteTime": {
+ "end_time": "2024-08-29T07:34:11.915959400Z",
+ "start_time": "2024-08-29T07:31:04.694061Z"
}
},
+ "source": [
+ "val correctDF = DataFrame.read(\"http://localhost:8080/correct-stats\")\n",
+ "correctDF.schema()"
+ ],
"outputs": [
{
"data": {
@@ -461,93 +743,36 @@
"correct: Int"
]
},
- "execution_count": 31,
+ "execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
- "source": [
- "val correctDF = DataFrame.read(\"http://localhost:8080/correct-stats\")\n",
- "correctDF.schema()"
- ]
+ "execution_count": 10
},
{
"cell_type": "code",
- "execution_count": 32,
"metadata": {
"ExecuteTime": {
- "end_time": "2024-08-24T11:14:20.619193Z",
- "start_time": "2024-08-24T11:14:20.287192300Z"
+ "end_time": "2024-08-29T07:34:11.916958Z",
+ "start_time": "2024-08-29T07:31:05.379688600Z"
}
},
+ "source": [
+ "val correctDF2 = correctDF.add(\"tq\") {\n",
+ " question.take(3) +\n",
+ " Typography.ellipsis.toString() +\n",
+ " question.takeLast(25)\n",
+ "}\n",
+ "correctDF2"
+ ],
"outputs": [
{
"data": {
- "application/kotlindataframe+json": {
- "columns": [
- "question",
- "correct",
- "tq"
- ],
- "kotlin_dataframe": [
- {
- "correct": 0,
- "question": "What is the primary goal of Kotlin Multiplatform?",
- "tq": "Wha… of Kotlin Multiplatform?"
- },
- {
- "correct": 1,
- "question": "How does Kotlin Multiplatform facilitate code sharing between platforms?",
- "tq": "How…haring between platforms?"
- },
- {
- "correct": 1,
- "question": "Which platforms does Kotlin Multiplatform support?",
- "tq": "Whi…in Multiplatform support?"
- },
- {
- "correct": 0,
- "question": "What is a common use case for Kotlin Multiplatform?",
- "tq": "Wha…for Kotlin Multiplatform?"
- },
- {
- "correct": 0,
- "question": "What is a shared code module in Kotlin Multiplatform called?",
- "tq": "Wha…lin Multiplatform called?"
- },
- {
- "correct": 1,
- "question": "How does Kotlin Multiplatform handle platform-specific implementations?",
- "tq": "How…specific implementations?"
- },
- {
- "correct": 1,
- "question": "What languages can be interoperable with Kotlin Multiplatform?",
- "tq": "Wha…ith Kotlin Multiplatform?"
- },
- {
- "correct": 0,
- "question": "What tooling supports Kotlin Multiplatform development?",
- "tq": "Wha…ultiplatform development?"
- },
- {
- "correct": 0,
- "question": "What is the benefit of using Kotlin Multiplatform for mobile development?",
- "tq": "Wha…m for mobile development?"
- },
- {
- "correct": 0,
- "question": "How does Kotlin Multiplatform differ from Kotlin Native and Kotlin/JS?",
- "tq": "How…lin Native and Kotlin/JS?"
- }
- ],
- "ncol": 3,
- "nrow": 10
- },
"text/html": [
- " \n",
- " \n",
- " \n",
" \n",
" \n",
- "