Skip to content

Commit 3ff694c

Browse files
authored
Merge pull request #17 from t-strings/add-default-notebook
Add new example notebooks demonstrating various features and components
2 parents f71ac27 + 9f86c70 commit 3ff694c

37 files changed

+510
-218
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@ check-jq:
5353
which jq || (echo "jq is not installed. Please install jq to continue." && exit 1)
5454

5555
convert-tdom-examples-to-ipynb:
56+
rm -fr content/*
57+
cp greeting.ipynb content/
5658
python tools/convert_py_to_ipynb.py
5759
@echo "Converted tdom examples to ipynb format."

content/boolean_attribute_value.ipynb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "7c7af2e8",
6+
"id": "5153612e",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -13,7 +13,7 @@
1313
{
1414
"cell_type": "code",
1515
"execution_count": null,
16-
"id": "6d0a86c8",
16+
"id": "f6adef93",
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -23,7 +23,7 @@
2323
{
2424
"cell_type": "code",
2525
"execution_count": null,
26-
"id": "1c021fcc",
26+
"id": "75b8f48b",
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
@@ -43,6 +43,14 @@
4343
"extension": ".py",
4444
"format_name": "light"
4545
}
46+
},
47+
"kernelspec": {
48+
"display_name": "Python (Pyodide)",
49+
"language": "python",
50+
"name": "python"
51+
},
52+
"language_info": {
53+
"name": "python"
4654
}
4755
},
4856
"nbformat": 4,

content/call_function.ipynb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "4348a0e3",
6+
"id": "3ba9dd8c",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -13,7 +13,7 @@
1313
{
1414
"cell_type": "code",
1515
"execution_count": null,
16-
"id": "4249496e",
16+
"id": "dd646858",
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -23,7 +23,7 @@
2323
{
2424
"cell_type": "code",
2525
"execution_count": null,
26-
"id": "bd322eea",
26+
"id": "424e242d",
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "aa3495d3",
38+
"id": "011b9cc7",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -56,6 +56,14 @@
5656
"extension": ".py",
5757
"format_name": "light"
5858
}
59+
},
60+
"kernelspec": {
61+
"display_name": "Python (Pyodide)",
62+
"language": "python",
63+
"name": "python"
64+
},
65+
"language_info": {
66+
"name": "python"
5967
}
6068
},
6169
"nbformat": 4,

content/child_nodes.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "aae25e85",
6+
"id": "986bd855",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -14,7 +14,7 @@
1414
{
1515
"cell_type": "code",
1616
"execution_count": null,
17-
"id": "e7f46ae7",
17+
"id": "2f4f82b9",
1818
"metadata": {},
1919
"outputs": [],
2020
"source": [
@@ -34,6 +34,14 @@
3434
"extension": ".py",
3535
"format_name": "light"
3636
}
37+
},
38+
"kernelspec": {
39+
"display_name": "Python (Pyodide)",
40+
"language": "python",
41+
"name": "python"
42+
},
43+
"language_info": {
44+
"name": "python"
3745
}
3846
},
3947
"nbformat": 4,

content/children_props.ipynb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "5a1ea12f",
6+
"id": "125b6664",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -13,7 +13,7 @@
1313
{
1414
"cell_type": "code",
1515
"execution_count": null,
16-
"id": "ef2d0d90",
16+
"id": "3fab8fdd",
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -23,7 +23,7 @@
2323
{
2424
"cell_type": "code",
2525
"execution_count": null,
26-
"id": "9ce7c0c5",
26+
"id": "fc75c53a",
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "88b07548",
38+
"id": "95fb64fb",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -55,6 +55,14 @@
5555
"extension": ".py",
5656
"format_name": "light"
5757
}
58+
},
59+
"kernelspec": {
60+
"display_name": "Python (Pyodide)",
61+
"language": "python",
62+
"name": "python"
63+
},
64+
"language_info": {
65+
"name": "python"
5866
}
5967
},
6068
"nbformat": 4,

content/conditional_default.ipynb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "5021c0e6",
6+
"id": "17bbe8f5",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -13,7 +13,7 @@
1313
{
1414
"cell_type": "code",
1515
"execution_count": null,
16-
"id": "b8d77448",
16+
"id": "ace33f1e",
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -23,7 +23,7 @@
2323
{
2424
"cell_type": "code",
2525
"execution_count": null,
26-
"id": "b130acb5",
26+
"id": "d94d2c05",
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "01c68bde",
38+
"id": "ed841556",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -47,7 +47,7 @@
4747
{
4848
"cell_type": "code",
4949
"execution_count": null,
50-
"id": "16a8fba2",
50+
"id": "66534431",
5151
"metadata": {},
5252
"outputs": [],
5353
"source": [
@@ -59,7 +59,7 @@
5959
{
6060
"cell_type": "code",
6161
"execution_count": null,
62-
"id": "0e8c89ee",
62+
"id": "adc0bb48",
6363
"metadata": {},
6464
"outputs": [],
6565
"source": [
@@ -79,6 +79,14 @@
7979
"extension": ".py",
8080
"format_name": "light"
8181
}
82+
},
83+
"kernelspec": {
84+
"display_name": "Python (Pyodide)",
85+
"language": "python",
86+
"name": "python"
87+
},
88+
"language_info": {
89+
"name": "python"
8290
}
8391
},
8492
"nbformat": 4,

content/dataclass_component.ipynb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "089c39e6",
6+
"id": "6d822e2e",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -13,7 +13,7 @@
1313
{
1414
"cell_type": "code",
1515
"execution_count": null,
16-
"id": "96ffb6cf",
16+
"id": "b858d5ac",
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -23,7 +23,7 @@
2323
{
2424
"cell_type": "code",
2525
"execution_count": null,
26-
"id": "38318773",
26+
"id": "6be62937",
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
@@ -33,7 +33,7 @@
3333
{
3434
"cell_type": "code",
3535
"execution_count": null,
36-
"id": "420c23ab",
36+
"id": "fb7ddb0e",
3737
"metadata": {},
3838
"outputs": [],
3939
"source": [
@@ -51,7 +51,7 @@
5151
{
5252
"cell_type": "code",
5353
"execution_count": null,
54-
"id": "7b95e914",
54+
"id": "2afdc582",
5555
"metadata": {},
5656
"outputs": [],
5757
"source": [
@@ -73,6 +73,14 @@
7373
"extension": ".py",
7474
"format_name": "light"
7575
}
76+
},
77+
"kernelspec": {
78+
"display_name": "Python (Pyodide)",
79+
"language": "python",
80+
"name": "python"
81+
},
82+
"language_info": {
83+
"name": "python"
7684
}
7785
},
7886
"nbformat": 4,

content/default_component.ipynb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "b4daf97a",
6+
"id": "3c5f1c4c",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -13,7 +13,7 @@
1313
{
1414
"cell_type": "code",
1515
"execution_count": null,
16-
"id": "41fbff64",
16+
"id": "cfb07770",
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -23,7 +23,7 @@
2323
{
2424
"cell_type": "code",
2525
"execution_count": null,
26-
"id": "480b38b5",
26+
"id": "c8e935d3",
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "a1ac0684",
38+
"id": "5d1e6424",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -47,7 +47,7 @@
4747
{
4848
"cell_type": "code",
4949
"execution_count": null,
50-
"id": "cc90c2aa",
50+
"id": "4c982de4",
5151
"metadata": {},
5252
"outputs": [],
5353
"source": [
@@ -59,7 +59,7 @@
5959
{
6060
"cell_type": "code",
6161
"execution_count": null,
62-
"id": "d3693d0b",
62+
"id": "9d7518e0",
6363
"metadata": {},
6464
"outputs": [],
6565
"source": [
@@ -79,6 +79,14 @@
7979
"extension": ".py",
8080
"format_name": "light"
8181
}
82+
},
83+
"kernelspec": {
84+
"display_name": "Python (Pyodide)",
85+
"language": "python",
86+
"name": "python"
87+
},
88+
"language_info": {
89+
"name": "python"
8290
}
8391
},
8492
"nbformat": 4,

0 commit comments

Comments
 (0)