Skip to content

Commit f21e786

Browse files
committed
clear outputs
1 parent b14a309 commit f21e786

File tree

1 file changed

+13
-49
lines changed

1 file changed

+13
-49
lines changed

notebooks/demo-aws.ipynb

Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,10 @@
4040
},
4141
{
4242
"cell_type": "code",
43-
"execution_count": 2,
43+
"execution_count": null,
4444
"id": "expanded-declaration",
4545
"metadata": {},
46-
"outputs": [
47-
{
48-
"name": "stdout",
49-
"output_type": "stream",
50-
"text": [
51-
"scheduler and worker image: public.ecr.aws/w8s1c8b1/lightgbm-dask-testing-cluster-jlamb:py3.12-dask2024.6.2\n"
52-
]
53-
}
54-
],
46+
"outputs": [],
5547
"source": [
5648
"import json\n",
5749
"import os\n",
@@ -79,16 +71,17 @@
7971
},
8072
{
8173
"cell_type": "code",
82-
"execution_count": 3,
74+
"execution_count": null,
8375
"id": "4a10d61c-5251-46a7-9f16-bd6eef606a82",
8476
"metadata": {},
8577
"outputs": [],
8678
"source": [
8779
"import platform\n",
80+
"\n",
8881
"if platform.machine().lower() in {\"aarch64\", \"arm64\"}:\n",
89-
" cpu_architecture=\"ARM64\"\n",
82+
" cpu_architecture = \"ARM64\"\n",
9083
"else:\n",
91-
" cpu_architecture=\"X86_64\""
84+
" cpu_architecture = \"X86_64\""
9285
]
9386
},
9487
{
@@ -104,16 +97,7 @@
10497
"execution_count": null,
10598
"id": "respective-collect",
10699
"metadata": {},
107-
"outputs": [
108-
{
109-
"name": "stderr",
110-
"output_type": "stream",
111-
"text": [
112-
"/usr/local/lib/python3.12/contextlib.py:144: UserWarning: Creating your cluster is taking a surprisingly long time. This is likely due to pending resources on AWS. Hang tight! \n",
113-
" next(self.gen)\n"
114-
]
115-
}
116-
],
100+
"outputs": [],
117101
"source": [
118102
"from dask.distributed import Client\n",
119103
"from dask_cloudprovider.aws import FargateCluster\n",
@@ -134,18 +118,10 @@
134118
},
135119
{
136120
"cell_type": "code",
137-
"execution_count": 10,
121+
"execution_count": null,
138122
"id": "raising-mauritius",
139123
"metadata": {},
140-
"outputs": [
141-
{
142-
"name": "stdout",
143-
"output_type": "stream",
144-
"text": [
145-
"View the dashboard: http://52.55.229.38:8787/status\n"
146-
]
147-
}
148-
],
124+
"outputs": [],
149125
"source": [
150126
"print(f\"View the dashboard: {cluster.dashboard_link}\")"
151127
]
@@ -174,7 +150,7 @@
174150
},
175151
{
176152
"cell_type": "code",
177-
"execution_count": 11,
153+
"execution_count": null,
178154
"id": "structural-street",
179155
"metadata": {},
180156
"outputs": [],
@@ -199,7 +175,7 @@
199175
},
200176
{
201177
"cell_type": "code",
202-
"execution_count": 12,
178+
"execution_count": null,
203179
"id": "quiet-nicaragua",
204180
"metadata": {},
205181
"outputs": [],
@@ -225,22 +201,10 @@
225201
},
226202
{
227203
"cell_type": "code",
228-
"execution_count": 13,
204+
"execution_count": null,
229205
"id": "pleased-brunei",
230206
"metadata": {},
231-
"outputs": [
232-
{
233-
"ename": "ModuleNotFoundError",
234-
"evalue": "No module named 'lightgbm'",
235-
"output_type": "error",
236-
"traceback": [
237-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
238-
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
239-
"Cell \u001b[0;32mIn[13], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mlightgbm\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mdask\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m DaskLGBMRegressor\n\u001b[1;32m 3\u001b[0m dask_reg \u001b[38;5;241m=\u001b[39m DaskLGBMRegressor(\n\u001b[1;32m 4\u001b[0m client\u001b[38;5;241m=\u001b[39mclient,\n\u001b[1;32m 5\u001b[0m max_depth\u001b[38;5;241m=\u001b[39m\u001b[38;5;241m5\u001b[39m,\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 10\u001b[0m min_child_samples\u001b[38;5;241m=\u001b[39m\u001b[38;5;241m1\u001b[39m,\n\u001b[1;32m 11\u001b[0m )\n\u001b[1;32m 13\u001b[0m dask_reg\u001b[38;5;241m.\u001b[39mfit(\n\u001b[1;32m 14\u001b[0m X\u001b[38;5;241m=\u001b[39mdX,\n\u001b[1;32m 15\u001b[0m y\u001b[38;5;241m=\u001b[39mdy,\n\u001b[1;32m 16\u001b[0m )\n",
240-
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'lightgbm'"
241-
]
242-
}
243-
],
207+
"outputs": [],
244208
"source": [
245209
"from lightgbm.dask import DaskLGBMRegressor\n",
246210
"\n",

0 commit comments

Comments
 (0)