Skip to content

Commit d548e74

Browse files
committed
update demo notebook tagging
1 parent a369d80 commit d548e74

8 files changed

+18
-25
lines changed

examples/self-hosting-lineapy/examples/housing_example.ipynb

+4-11
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,14 @@
5959
"metadata": {
6060
"tags": []
6161
},
62-
"outputs": [
63-
{
64-
"name": "stderr",
65-
"output_type": "stream",
66-
"text": [
67-
"generated new fontManager \n"
68-
]
69-
}
70-
],
62+
"outputs": [],
7163
"source": [
7264
"# Set option so plots in EDA are visible\n",
7365
"%matplotlib inline\n",
7466
"\n",
7567
"import lineapy\n",
76-
"lineapy.options.set(\"is_demo\", True)"
68+
"\n",
69+
"lineapy.tag(\"Self-hosting Demo\")"
7770
]
7871
},
7972
{
@@ -2126,7 +2119,7 @@
21262119
"name": "python",
21272120
"nbconvert_exporter": "python",
21282121
"pygments_lexer": "ipython3",
2129-
"version": "3.10.6"
2122+
"version": "3.9.7"
21302123
}
21312124
},
21322125
"nbformat": 4,

examples/tutorials/00_api_basics.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"import pandas as pd\n",
103103
"import matplotlib.pyplot as plt\n",
104104
"\n",
105-
"lineapy.options.set(\"is_demo\", True)"
105+
"lineapy.tag(\"API Basics Demo\")"
106106
]
107107
},
108108
{
@@ -1499,7 +1499,7 @@
14991499
"name": "python",
15001500
"nbconvert_exporter": "python",
15011501
"pygments_lexer": "ipython3",
1502-
"version": "3.10.3"
1502+
"version": "3.9.7"
15031503
}
15041504
},
15051505
"nbformat": 4,

examples/tutorials/01_refactor_code.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"import matplotlib.pyplot as plt\n",
6363
"from sklearn.linear_model import LinearRegression\n",
6464
"\n",
65-
"lineapy.options.set(\"is_demo\", True)"
65+
"lineapy.tag(\"Refactoring Code Demo\")"
6666
]
6767
},
6868
{
@@ -1063,7 +1063,7 @@
10631063
"name": "python",
10641064
"nbconvert_exporter": "python",
10651065
"pygments_lexer": "ipython3",
1066-
"version": "3.10.3"
1066+
"version": "3.9.7"
10671067
}
10681068
},
10691069
"nbformat": 4,

examples/tutorials/02_build_pipelines.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"import matplotlib.pyplot as plt\n",
7171
"from sklearn.linear_model import LinearRegression\n",
7272
"\n",
73-
"lineapy.options.set(\"is_demo\", True)"
73+
"lineapy.tag(\"Refactoring Code Demo\")"
7474
]
7575
},
7676
{
@@ -1208,7 +1208,7 @@
12081208
"name": "python",
12091209
"nbconvert_exporter": "python",
12101210
"pygments_lexer": "ipython3",
1211-
"version": "3.10.3"
1211+
"version": "3.9.7"
12121212
}
12131213
},
12141214
"nbformat": 4,

examples/tutorials/03_parametrize_pipelines.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"source": [
6262
"# NBVAL_IGNORE_OUTPUT\n",
6363
"import lineapy\n",
64-
"lineapy.options.set(\"is_demo\", True)"
64+
"lineapy.tag(\"Building Parameterized Pipelines Demo\")"
6565
]
6666
},
6767
{
@@ -428,7 +428,7 @@
428428
"name": "python",
429429
"nbconvert_exporter": "python",
430430
"pygments_lexer": "ipython3",
431-
"version": "3.10.3"
431+
"version": "3.9.7"
432432
}
433433
},
434434
"nbformat": 4,

examples/tutorials/04a_adding_library_annotations.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"# NBVAL_SKIP\n",
5757
"import pyperclip\n",
5858
"import lineapy\n",
59-
"lineapy.options.set(\"is_demo\", True)"
59+
"lineapy.tag(\"Adding Library Annotations Demo A\")"
6060
]
6161
},
6262
{
@@ -252,7 +252,7 @@
252252
"name": "python",
253253
"nbconvert_exporter": "python",
254254
"pygments_lexer": "ipython3",
255-
"version": "3.10.3"
255+
"version": "3.9.7"
256256
}
257257
},
258258
"nbformat": 4,

examples/tutorials/04b_adding_custom_annotations.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"from .sample_user_class import MyClass\n",
3535
"\n",
3636
"import lineapy\n",
37-
"lineapy.options.set(\"is_demo\", True)"
37+
"lineapy.tag(\"Adding Library Annotations Demo B\")"
3838
]
3939
},
4040
{
@@ -282,7 +282,7 @@
282282
"name": "python",
283283
"nbconvert_exporter": "python",
284284
"pygments_lexer": "ipython3",
285-
"version": "3.10.3"
285+
"version": "3.9.7"
286286
}
287287
},
288288
"nbformat": 4,

examples/use_cases/predict_house_price/housing_example.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"%matplotlib inline\n",
6666
"\n",
6767
"import lineapy\n",
68-
"lineapy.options.set(\"is_demo\", True)"
68+
"lineapy.tag(\"Housing Price Demo\")"
6969
]
7070
},
7171
{
@@ -2113,7 +2113,7 @@
21132113
"name": "python",
21142114
"nbconvert_exporter": "python",
21152115
"pygments_lexer": "ipython3",
2116-
"version": "3.10.3"
2116+
"version": "3.9.7"
21172117
}
21182118
},
21192119
"nbformat": 4,

0 commit comments

Comments
 (0)