File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 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 {
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()"
625626 "outputs" : [],
626627 "source" : [
627628 " # uncomment to enter post-mortem debugger\n " ,
628- " # debug"
629+ " # % debug"
629630 ]
630631 },
631632 {
659660 "outputs" : [],
660661 "source" : [
661662 " # uncomment to enter post-mortem debugger\n " ,
662- " # debug"
663+ " # % debug"
663664 ]
664665 },
665666 {
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 ],
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 ,
You can’t perform that action at this time.
0 commit comments