How to see progress of Dask Compute task?

前端 未结 1 416
庸人自扰
庸人自扰 2020-12-15 05:27

I would like to see a progressbar on Jupyternotebook while i\'m running a compute task using Dask, I\'m counting all values of \"id\" column from a large csv file +4GB, so a

相关标签:
1条回答
  • 2020-12-15 05:59

    If you're using the single machine scheduler then do this:

    from dask.diagnostics import ProgressBar
    ProgressBar().register()
    

    http://dask.pydata.org/en/latest/diagnostics-local.html

    If you're using the distributed scheduler then do this:

    from dask.distributed import progress
    
    result = df.id.count.persist()
    progress(result)
    

    Or just use the dashboard

    http://dask.pydata.org/en/latest/diagnostics-distributed.html

    0 讨论(0)
提交回复
热议问题