From b676d276e056a3222a60165e20e4e60d9d3dd1e2 Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Fri, 29 Nov 2024 16:23:19 +0100 Subject: [PATCH] Updates to 0.1.0-dev0 --- docs/src/check.ipynb | 254 +++++--------------------------- docs/src/conf.py | 22 +-- docs/src/exercises.ipynb | 229 +++++------------------------ docs/src/getting_started.ipynb | 259 ++++++--------------------------- 4 files changed, 124 insertions(+), 640 deletions(-) diff --git a/docs/src/check.ipynb b/docs/src/check.ipynb index 064cde2..9c86666 100644 --- a/docs/src/check.ipynb +++ b/docs/src/check.ipynb @@ -25,177 +25,11 @@ }, "outputs": [], "source": [ - "from scwidgets.code import CodeInput\n", - "from scwidgets.exercise import CodeExercise\n", - "\n", - "from scwidgets.check import (\n", - " Check,\n", - " CheckRegistry\n", - ")\n", + "from scwidgets import CodeInput, CodeExercise, Check, CheckRegistry\n", "\n", "import numpy as np " ] }, - { - "cell_type": "code", - "execution_count": 2, - "id": "5681a905-b6e3-498c-ba5d-e4d6de89fc53", - "metadata": { - "tags": [] - }, - "outputs": [ - { - "data": { - "text/html": [ - "HTML with scicode-widget css style sheet. Please keep this cell output alive." - ], - "text/plain": [ - "" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "# load css styles\n", - "from scwidgets import get_css_style\n", - "get_css_style()" - ] - }, { "cell_type": "markdown", "id": "9ba29257-5b8e-4b57-a397-bfc169b799e9", @@ -206,7 +40,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "id": "9b1a451b-5aac-4b14-9c19-c103d55fcda5", "metadata": { "tags": [] @@ -226,24 +60,25 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "id": "e440765f-66f9-4505-83f3-18396729ab2c", "metadata": { + "scrolled": true, "tags": [] }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "fea9899ecd9b450e8027dd2c4bbe8fc7", + "model_id": "e729b5426a374e23a69a9452e2155448", "version_major": 2, "version_minor": 0 }, "text/plain": [ - "CodeExercise(children=(HTML(value='sinus_with_references_1', _dom_classes=('exercise-title',)), UpdateC…" + "CodeExercise(children=(CssStyle(value='" - ], - "text/plain": [ - "" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "from scwidgets import get_css_style\n", - "get_css_style()" - ] - }, { "cell_type": "markdown", "id": "ddf8c428-e386-4670-a8fe-95575e119fcb", @@ -213,7 +59,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "id": "407b5824-d02c-4170-8ac8-c4106a36fd11", "metadata": { "tags": [] @@ -222,15 +68,15 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "0b904dd09f964964b18f3eec2fd6a0ce", + "model_id": "129de08a7dfd438690a88788308f7ddf", "version_major": 2, "version_minor": 0 }, "text/plain": [ - "ExerciseRegistry(children=(HBox(children=(Label(value='Choose:'), Dropdown(options=('--- Create new answer fil…" + "ExerciseRegistry(children=(CssStyle(value='" - ], - "text/plain": [ - "" - ] - }, - "execution_count": 6, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "# load css styles\n", - "from scwidgets import get_css_style\n", - "get_css_style()" - ] - }, - { - "cell_type": "markdown", - "id": "15f09062-4fc1-4440-ad0c-5145b519d8d1", - "metadata": {}, - "source": [ - "This enables the cue system that marks changed widgets." - ] - }, { "cell_type": "markdown", "id": "96292de4-545b-478d-80a9-3896f8d5dfd3", @@ -239,21 +63,22 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 4, "id": "31ad0ffd-3a0f-4c06-be6c-871be61b4040", "metadata": { + "scrolled": false, "tags": [] }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "7e31cfe8723c4a819466b0edd286843a", + "model_id": "48fc12ef3a2c49d0a6e2240fd9f19c0f", "version_major": 2, "version_minor": 0 }, "text/plain": [ - "CodeExercise(children=(HTML(value='Sinus function', _dom_classes=('exercise-title',)), HTMLMath(value='…" + "CodeExercise(children=(CssStyle(value='