Skip to content

Commit da3f328

Browse files
author
Tom Augspurger
authored
Use dashboard_link in scale-with-dask (microsoft#67)
The static site can't display widgets, so we avoid printing out the cluster's repr HTML. But the plaintext repr doesn't have a dashboard link.
1 parent 489041c commit da3f328

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

quickstarts/scale-with-dask.ipynb

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"cluster = dask_gateway.GatewayCluster()\n",
4141
"client = cluster.get_client()\n",
4242
"cluster.scale(4)\n",
43-
"print(cluster)"
43+
"print(cluster.dashboard_link)"
4444
]
4545
},
4646
{
@@ -52,22 +52,16 @@
5252
"\n",
5353
"### Open the dashboard\n",
5454
"\n",
55-
"The [Dask Dashboard](https://docs.dask.org/en/latest/diagnostics-distributed.html) provides invaluable information on the activity of your cluster. Clicking the \"Dashboard\" link at the bottom of the cluster repr will open a new browser tab.\n",
55+
"The [Dask Dashboard](https://docs.dask.org/en/latest/diagnostics-distributed.html) provides invaluable information on the activity of your cluster. Clicking the \"Dashboard\" link above will open the Dask dashboard a new browser tab.\n",
5656
"\n",
5757
"<img src=\"images/dashboard-tab.png\" width=\"50%\" alt=\"Dask Dashboard in a new tab.\"/>\n",
5858
"\n",
5959
"We also include the [dask-labextension](https://github.com/dask/dask-labextension) for laying out the Dask dashboard as tabs in the Jupyterlab workspace.\n",
6060
"\n",
6161
"<img src=\"images/dashboard-hub.png\" width=\"50%\" alt=\"Dask Dashboard in jupyterlab.\"/>\n",
6262
"\n",
63-
"To using the dask-labextension, copy the \"Dashboard\" address from the cluster repr, click the orange Dask logo on the lefthand navigation bar, and paste the dashboard address "
64-
]
65-
},
66-
{
67-
"cell_type": "markdown",
68-
"id": "supreme-demographic",
69-
"metadata": {},
70-
"source": [
63+
"To using the dask-labextension, copy the \"Dashboard\" address from the cluster repr, click the orange Dask logo on the lefthand navigation bar, and paste the dashboard address \n",
64+
"\n",
7165
"You can close your cluster, freeing up its resources, by calling `cluster.close()`."
7266
]
7367
},
@@ -1519,7 +1513,7 @@
15191513
],
15201514
"metadata": {
15211515
"kernelspec": {
1522-
"display_name": "Python 3",
1516+
"display_name": "Python 3 (ipykernel)",
15231517
"language": "python",
15241518
"name": "python3"
15251519
},
@@ -1533,7 +1527,7 @@
15331527
"name": "python",
15341528
"nbconvert_exporter": "python",
15351529
"pygments_lexer": "ipython3",
1536-
"version": "3.8.8"
1530+
"version": "3.8.10"
15371531
},
15381532
"widgets": {
15391533
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)