diff --git a/Makefile b/Makefile index c4cef16..2624c17 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,8 @@ build-playground: check-jq WHL_FILE=$$(ls pypi | grep .whl) ;\ python tools/patch_jlite_json.py \ public/lite/jupyter-lite.json \ - --whl-url "pypi/$$WHL_FILE" && \ + --whl-url "pypi/$$WHL_FILE" \ + --disable-dirty && \ cp -frpv pyodide public/lite/ && \ cp -frpv pypi public/lite/extensions/@jupyterlite/pyodide-kernel-extension/static/ diff --git a/content/boolean_attribute_value.ipynb b/content/boolean_attribute_value.ipynb index 0895d17..035b0de 100644 --- a/content/boolean_attribute_value.ipynb +++ b/content/boolean_attribute_value.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5b7d23a9", + "id": "1051a8e7", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4e709496", + "id": "394eacaf", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c219302b", + "id": "7b4d8476", "metadata": {}, "outputs": [], "source": [ diff --git a/content/call_function.ipynb b/content/call_function.ipynb index fb0d0eb..72fe328 100644 --- a/content/call_function.ipynb +++ b/content/call_function.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fc98fedd", + "id": "eb0e8234", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c0ad37f0", + "id": "f508f146", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "32f68a0d", + "id": "368c5c9f", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ace28039", + "id": "2d56b175", "metadata": {}, "outputs": [], "source": [ diff --git a/content/child_nodes.ipynb b/content/child_nodes.ipynb index b2b74df..310c75e 100644 --- a/content/child_nodes.ipynb +++ b/content/child_nodes.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "467bc5fe", + "id": "19a08004", "metadata": {}, "outputs": [], "source": [ @@ -14,7 +14,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7b4ea151", + "id": "f8bf6dee", "metadata": {}, "outputs": [], "source": [ diff --git a/content/children_props.ipynb b/content/children_props.ipynb index 409e3e3..30bc973 100644 --- a/content/children_props.ipynb +++ b/content/children_props.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f6a06f24", + "id": "14ec6992", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "40c22133", + "id": "faf088d2", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "637d8b0e", + "id": "89f33397", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f53c087f", + "id": "7a01befa", "metadata": {}, "outputs": [], "source": [ diff --git a/content/conditional_default.ipynb b/content/conditional_default.ipynb index db425d4..4b2e950 100644 --- a/content/conditional_default.ipynb +++ b/content/conditional_default.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5ce4cf10", + "id": "e46ec9e8", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d5b8f87c", + "id": "d4bc6a1f", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f24050d3", + "id": "25e7eb68", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a0d305b4", + "id": "6820086a", "metadata": {}, "outputs": [], "source": [ @@ -47,7 +47,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0c146bbd", + "id": "cbc747a0", "metadata": {}, "outputs": [], "source": [ @@ -59,7 +59,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b189a92f", + "id": "9461dc1c", "metadata": {}, "outputs": [], "source": [ diff --git a/content/dataclass_component.ipynb b/content/dataclass_component.ipynb index 830a43a..0c45b6f 100644 --- a/content/dataclass_component.ipynb +++ b/content/dataclass_component.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "71119db6", + "id": "5d789b9f", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "382210dc", + "id": "006e1b15", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "28ee3d40", + "id": "f408ac5e", "metadata": {}, "outputs": [], "source": [ @@ -33,7 +33,7 @@ { "cell_type": "code", "execution_count": null, - "id": "6c6933f0", + "id": "a3f47214", "metadata": {}, "outputs": [], "source": [ @@ -51,7 +51,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f654950b", + "id": "fbb09b3b", "metadata": {}, "outputs": [], "source": [ diff --git a/content/default_component.ipynb b/content/default_component.ipynb index 94c9a15..7b8817a 100644 --- a/content/default_component.ipynb +++ b/content/default_component.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "56d2b568", + "id": "40245ff4", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "192a7356", + "id": "08ef76bb", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a98f8299", + "id": "5721cc1a", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "29f36c13", + "id": "09da7d75", "metadata": {}, "outputs": [], "source": [ @@ -47,7 +47,7 @@ { "cell_type": "code", "execution_count": null, - "id": "161562db", + "id": "b9ee4d74", "metadata": {}, "outputs": [], "source": [ @@ -59,7 +59,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8e71f8d2", + "id": "b4e72f71", "metadata": {}, "outputs": [], "source": [ diff --git a/content/default_value.ipynb b/content/default_value.ipynb index 800fa30..868fab3 100644 --- a/content/default_value.ipynb +++ b/content/default_value.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "19fd9766", + "id": "0ce34d6a", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "886be312", + "id": "e957552f", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a66f3040", + "id": "13db272c", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "afc510aa", + "id": "a6e85f92", "metadata": {}, "outputs": [], "source": [ diff --git a/content/examples.ipynb b/content/examples.ipynb index a623565..f5c8758 100644 --- a/content/examples.ipynb +++ b/content/examples.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "24b07721", + "id": "d6bc86a0", "metadata": {}, "outputs": [], "source": [ diff --git a/content/expression_props.ipynb b/content/expression_props.ipynb index 5b6bd7c..fff0fe7 100644 --- a/content/expression_props.ipynb +++ b/content/expression_props.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a40d8058", + "id": "36c5de32", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "abfcf1b2", + "id": "fce808eb", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2fe946ef", + "id": "26fb57ad", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "38787b67", + "id": "d013d6cd", "metadata": {}, "outputs": [], "source": [ diff --git a/content/expressions_as_values.ipynb b/content/expressions_as_values.ipynb index 5602139..9f608fd 100644 --- a/content/expressions_as_values.ipynb +++ b/content/expressions_as_values.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b2b5e6f0", + "id": "98168ea8", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "908949fe", + "id": "d6d26503", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "76d55172", + "id": "beffcfaa", "metadata": {}, "outputs": [], "source": [ diff --git a/content/generators.ipynb b/content/generators.ipynb index 77eca43..c189f7e 100644 --- a/content/generators.ipynb +++ b/content/generators.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7ce2a334", + "id": "c412941c", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "47bc41da", + "id": "dc5f81b6", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "13a94b39", + "id": "d06fc96f", "metadata": {}, "outputs": [], "source": [ @@ -37,7 +37,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9302490a", + "id": "6d9066fe", "metadata": {}, "outputs": [], "source": [ diff --git a/content/hello.ipynb b/content/hello.ipynb deleted file mode 100644 index 0be1e65..0000000 --- a/content/hello.ipynb +++ /dev/null @@ -1,23 +0,0 @@ -{ - "cells": [ - { - "metadata": { - "jupyter": { - "is_executing": true - } - }, - "cell_type": "code", - "source": [ - "name = \"World\"\n", - "message = t\"Hello {name}\"\n", - "print(message)\n" - ], - "id": "1673818a171b3b31", - "outputs": [], - "execution_count": null - } - ], - "metadata": {}, - "nbformat": 4, - "nbformat_minor": 5 -} diff --git a/content/insert_value.ipynb b/content/insert_value.ipynb index bd69d79..241a7c8 100644 --- a/content/insert_value.ipynb +++ b/content/insert_value.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "67019110", + "id": "24fc4a95", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "837e4357", + "id": "4d1598f5", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5095d0ae", + "id": "b430f926", "metadata": {}, "outputs": [], "source": [ diff --git a/content/notebooks.json b/content/notebooks.json index 3f51f03..e4996c9 100644 --- a/content/notebooks.json +++ b/content/notebooks.json @@ -1 +1 @@ -["boolean_attribute_value", "call_function", "child_nodes", "children_props", "components", "conditional_default", "conditionals", "dataclass_component", "default_component", "default_value", "examples", "expression_props", "expressions", "expressions_as_values", "generators", "insert_value", "looping", "optional_props", "pass_component", "passed_in_prop", "python_operation", "rendered_looping", "scope_values", "shorthand_syntax", "show_vdom", "simple_arithmetic", "simple_heading", "simple_looping", "simple_props", "simple_render", "static_string", "string_literal", "subcomponents", "syntax", "value_from_import", "variables"] \ No newline at end of file +["boolean_attribute_value", "call_function", "child_nodes", "children_props", "conditional_default", "dataclass_component", "default_component", "default_value", "examples", "expression_props", "expressions_as_values", "generators", "insert_value", "optional_props", "pass_component", "passed_in_prop", "python_operation", "rendered_looping", "scope_values", "shorthand_syntax", "show_vdom", "simple_arithmetic", "simple_heading", "simple_looping", "simple_props", "simple_render", "string_literal", "subcomponents", "syntax", "value_from_import"] \ No newline at end of file diff --git a/content/optional_props.ipynb b/content/optional_props.ipynb index c137364..861860f 100644 --- a/content/optional_props.ipynb +++ b/content/optional_props.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "cee9717b", + "id": "16ed5c68", "metadata": {}, "outputs": [], "source": [ @@ -14,7 +14,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9b254628", + "id": "7d7142da", "metadata": {}, "outputs": [], "source": [ @@ -27,7 +27,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c30831d0", + "id": "9620b07e", "metadata": {}, "outputs": [], "source": [ diff --git a/content/pass_component.ipynb b/content/pass_component.ipynb index c3f924d..ff81923 100644 --- a/content/pass_component.ipynb +++ b/content/pass_component.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c0cb9eae", + "id": "19a08f10", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7e4cbaea", + "id": "84663f39", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4eb1bc30", + "id": "4dc2597e", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "eb94e8c5", + "id": "8454d153", "metadata": {}, "outputs": [], "source": [ @@ -47,7 +47,7 @@ { "cell_type": "code", "execution_count": null, - "id": "cc8e951b", + "id": "b240bb6a", "metadata": {}, "outputs": [], "source": [ diff --git a/content/passed_in_prop.ipynb b/content/passed_in_prop.ipynb index d8aa2b2..ac21f87 100644 --- a/content/passed_in_prop.ipynb +++ b/content/passed_in_prop.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "53473af2", + "id": "2386de8a", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "82a6e226", + "id": "cd0ba65c", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e9e140a2", + "id": "b8f7f71b", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "aa135554", + "id": "4adc65a3", "metadata": {}, "outputs": [], "source": [ diff --git a/content/python_operation.ipynb b/content/python_operation.ipynb index 4be0a5a..eed7a58 100644 --- a/content/python_operation.ipynb +++ b/content/python_operation.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ccceff2f", + "id": "504d765d", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8c05b64c", + "id": "59ae84ee", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2ab18fa7", + "id": "b553743c", "metadata": {}, "outputs": [], "source": [ diff --git a/content/rendered_looping.ipynb b/content/rendered_looping.ipynb index 6c2a9dc..1e7f8ff 100644 --- a/content/rendered_looping.ipynb +++ b/content/rendered_looping.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1e9106fd", + "id": "1efc22c8", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "561ae11e", + "id": "e6c4e0af", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1d82901d", + "id": "0d30c686", "metadata": {}, "outputs": [], "source": [ diff --git a/content/scope_values.ipynb b/content/scope_values.ipynb index 3461fb8..ffbd262 100644 --- a/content/scope_values.ipynb +++ b/content/scope_values.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9dc8f8ff", + "id": "c924489b", "metadata": {}, "outputs": [], "source": [ @@ -14,7 +14,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9ddb542c", + "id": "54934916", "metadata": {}, "outputs": [], "source": [ @@ -27,7 +27,7 @@ { "cell_type": "code", "execution_count": null, - "id": "81785b05", + "id": "129baaba", "metadata": {}, "outputs": [], "source": [ @@ -37,7 +37,7 @@ { "cell_type": "code", "execution_count": null, - "id": "90f6b34a", + "id": "aac4590d", "metadata": {}, "outputs": [], "source": [ diff --git a/content/shorthand_syntax.ipynb b/content/shorthand_syntax.ipynb index 0683af7..f533018 100644 --- a/content/shorthand_syntax.ipynb +++ b/content/shorthand_syntax.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c4f86e99", + "id": "34d87ac2", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e961754f", + "id": "619ed7ea", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7392958e", + "id": "d647c045", "metadata": {}, "outputs": [], "source": [ diff --git a/content/show_vdom.ipynb b/content/show_vdom.ipynb index 2076bf0..54b41c9 100644 --- a/content/show_vdom.ipynb +++ b/content/show_vdom.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c2851d88", + "id": "282e0d4a", "metadata": {}, "outputs": [], "source": [ @@ -14,7 +14,7 @@ { "cell_type": "code", "execution_count": null, - "id": "6beeace9", + "id": "b9e19a64", "metadata": {}, "outputs": [], "source": [ diff --git a/content/simple_arithmetic.ipynb b/content/simple_arithmetic.ipynb index 3408cca..2ab6f69 100644 --- a/content/simple_arithmetic.ipynb +++ b/content/simple_arithmetic.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fb3ad238", + "id": "8f9bf6c4", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "913a24e8", + "id": "3117094e", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0d38b355", + "id": "b417f202", "metadata": {}, "outputs": [], "source": [ diff --git a/content/simple_heading.ipynb b/content/simple_heading.ipynb index c483a26..f95e1fc 100644 --- a/content/simple_heading.ipynb +++ b/content/simple_heading.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4b3cb7bf", + "id": "2f218d83", "metadata": {}, "outputs": [], "source": [ @@ -14,7 +14,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4d4c2870", + "id": "99171452", "metadata": {}, "outputs": [], "source": [ @@ -26,7 +26,7 @@ { "cell_type": "code", "execution_count": null, - "id": "56324984", + "id": "e3a03c0f", "metadata": {}, "outputs": [], "source": [ diff --git a/content/simple_looping.ipynb b/content/simple_looping.ipynb index 9789b00..ebe0eee 100644 --- a/content/simple_looping.ipynb +++ b/content/simple_looping.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "49ed5029", + "id": "d91e494e", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "dbccb589", + "id": "4bf1afc8", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4dfe6005", + "id": "38382b95", "metadata": {}, "outputs": [], "source": [ diff --git a/content/simple_props.ipynb b/content/simple_props.ipynb index 12171ed..5ba761e 100644 --- a/content/simple_props.ipynb +++ b/content/simple_props.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4df44cc8", + "id": "6b028153", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "eb6c65f0", + "id": "9cfaa426", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9e8bfa50", + "id": "4d292a1d", "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "51c93a8c", + "id": "b9b429db", "metadata": {}, "outputs": [], "source": [ diff --git a/content/simple_render.ipynb b/content/simple_render.ipynb index d372e62..492be4e 100644 --- a/content/simple_render.ipynb +++ b/content/simple_render.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fe879e65", + "id": "867ffd5e", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f3335088", + "id": "3a329fff", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c1eaec0b", + "id": "ef7e252e", "metadata": {}, "outputs": [], "source": [ diff --git a/content/string_literal.ipynb b/content/string_literal.ipynb index c667f4b..441333e 100644 --- a/content/string_literal.ipynb +++ b/content/string_literal.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b1ae5d47", + "id": "b238a389", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "899a3647", + "id": "8d5ed45c", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "16f67740", + "id": "b9af20db", "metadata": {}, "outputs": [], "source": [ diff --git a/content/subcomponents.ipynb b/content/subcomponents.ipynb index 65987b9..e573909 100644 --- a/content/subcomponents.ipynb +++ b/content/subcomponents.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f4a5b8e2", + "id": "12f5d479", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f26b5438", + "id": "d8f394b3", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "6c1cecb8", + "id": "48eaf1d9", "metadata": {}, "outputs": [], "source": [ @@ -33,7 +33,7 @@ { "cell_type": "code", "execution_count": null, - "id": "31890981", + "id": "7d5e5314", "metadata": {}, "outputs": [], "source": [ @@ -45,7 +45,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a447db6f", + "id": "c4802adc", "metadata": {}, "outputs": [], "source": [ @@ -58,7 +58,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8fb6ef64", + "id": "a0b392ec", "metadata": {}, "outputs": [], "source": [ diff --git a/content/syntax.ipynb b/content/syntax.ipynb index 829f305..9b36e97 100644 --- a/content/syntax.ipynb +++ b/content/syntax.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "021c98af", + "id": "aa2959cb", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "65681b94", + "id": "8dc432db", "metadata": {}, "outputs": [], "source": [ @@ -23,7 +23,7 @@ { "cell_type": "code", "execution_count": null, - "id": "6c9597c9", + "id": "70ac2c45", "metadata": {}, "outputs": [], "source": [ diff --git a/content/value_from_import.ipynb b/content/value_from_import.ipynb index 3d69589..f9ed635 100644 --- a/content/value_from_import.ipynb +++ b/content/value_from_import.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "29f6b333", + "id": "935fe7a1", "metadata": {}, "outputs": [], "source": [ @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d5866c9e", + "id": "042cc025", "metadata": {}, "outputs": [], "source": [ @@ -24,7 +24,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5b39e9be", + "id": "5013f62a", "metadata": {}, "outputs": [], "source": [ @@ -36,7 +36,7 @@ { "cell_type": "code", "execution_count": null, - "id": "bda92319", + "id": "a7674c44", "metadata": {}, "outputs": [], "source": [ diff --git a/tools/convert_py_to_ipynb.py b/tools/convert_py_to_ipynb.py index 9822fc5..79381d2 100644 --- a/tools/convert_py_to_ipynb.py +++ b/tools/convert_py_to_ipynb.py @@ -10,6 +10,8 @@ notebooks = [] for init_py in TDOM.joinpath("examples").rglob("__init__.py"): + if init_py.parent.parent.name == "examples": + continue name = init_py.parent.name # e.g. call_function ipynb = OUT / f"{name}.ipynb" nbf.write(jupytext.read(init_py), ipynb) diff --git a/tools/patch_jlite_json.py b/tools/patch_jlite_json.py index 3697e71..d4c2019 100644 --- a/tools/patch_jlite_json.py +++ b/tools/patch_jlite_json.py @@ -5,26 +5,30 @@ p = argparse.ArgumentParser() p.add_argument("json_path") p.add_argument("--whl-url", required=True) +p.add_argument("--disable-dirty", action="store_true") +p.add_argument("--autosave-interval", type=int) args = p.parse_args() path = pathlib.Path(args.json_path) data = json.loads(path.read_text()) -kernel_key = "@jupyterlite/pyodide-kernel-extension:kernel" -plugin = data.setdefault("jupyter-config-data", {}) \ - .setdefault("litePluginSettings", {}) \ - .setdefault(kernel_key, {}) - -plugin["pyodideUrl"] = ( - # "https://koxudaxi.github.io/pyodide/tstrings/pyodide.js" - # "https://cdn.jsdelivr.net/pyodide/dev/full/pyodide.js" - "./pyodide/pyodide.js" -) - +cfg = data.setdefault("jupyter-config-data", {}) +lp = cfg.setdefault("litePluginSettings", {}) +k = "@jupyterlite/pyodide-kernel-extension:kernel" +plugin = lp.setdefault(k, {}) +plugin["pyodideUrl"] = "./pyodide/pyodide.js" opt = plugin.setdefault("loadPyodideOptions", {}) -# opt["indexURL"] = "https://cdn.jsdelivr.net/pyodide/dev/full/" -# opt["indexURL"] = "https://koxudaxi.github.io/pyodide/tstrings/" opt["indexURL"] = "./pyodide/" opt["packages"] = [args.whl_url] +if args.disable_dirty: + de = cfg.setdefault("disabledExtensions", []) + plug_id = "@jupyterlab/application-extension:dirty" + if plug_id not in de: + de.append(plug_id) + +if args.autosave_interval is not None: + dm_key = "@jupyterlab/docmanager-extension:plugin" + cfg.setdefault(dm_key, {})["autosaveInterval"] = args.autosave_interval + path.write_text(json.dumps(data, indent=2, ensure_ascii=False))