Skip to content

Commit 8cea1b3

Browse files
author
Mike McCarty
authored
Distributed Advanced Updates (#182)
1 parent 4c4c5e4 commit 8cea1b3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

06_distributed_advanced.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@
152152
"source": [
153153
"# notice the difference from total.compute()\n",
154154
"# notice that this cell completes immediately\n",
155-
"fut = c.compute(total)"
155+
"fut = c.compute(total)\n",
156+
"fut"
156157
]
157158
},
158159
{
@@ -612,7 +613,7 @@
612613
"outputs": [],
613614
"source": [
614615
"import dask\n",
615-
"with dask.set_options(get=dask.local.get_sync):\n",
616+
"with dask.config.set(scheduler=\"sync\"):\n",
616617
" # do NOT use c.compute(out) here - we specifically do not\n",
617618
" # want the distributed scheduler\n",
618619
" out.compute()"
@@ -625,7 +626,7 @@
625626
"outputs": [],
626627
"source": [
627628
"# uncomment to enter post-mortem debugger\n",
628-
"# debug"
629+
"# %debug"
629630
]
630631
},
631632
{
@@ -659,7 +660,7 @@
659660
"outputs": [],
660661
"source": [
661662
"# uncomment to enter post-mortem debugger\n",
662-
"# debug"
663+
"# %debug"
663664
]
664665
},
665666
{
@@ -676,7 +677,7 @@
676677
"metadata": {},
677678
"outputs": [],
678679
"source": [
679-
"c.cluster.scheduler.nbytes"
680+
"[(k, v.state) for k, v in c.cluster.scheduler.tasks.items() if v.exception is not None]"
680681
]
681682
}
682683
],
@@ -697,7 +698,7 @@
697698
"name": "python",
698699
"nbconvert_exporter": "python",
699700
"pygments_lexer": "ipython3",
700-
"version": "3.7.6"
701+
"version": "3.8.3"
701702
}
702703
},
703704
"nbformat": 4,

0 commit comments

Comments
 (0)