python 包分发,获取网站地址 UI 简单设置

python package distributed, get the address of the web UI with easy setup

我目前正在使用分发的 python 包,有谁知道在设置 Python API 时如何获取 Web 地址 UI?

executor = Executor()

或者我总是必须使用命令行进行设置

dask-scheduler

获取网站地址UI?

您可以使用以下命令启动网络界面:

>>> executor.cluster.start_diagnostics_server()
INFO -  Bokeh UI at:  http://127.0.0.1:8787/status/

这将打印出网页界面的地址。然而,它几乎总是在 http://localhost:8787/status/

这需要安装 Bokeh