ui.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:ray 作者: ray-project 项目源码 文件源码
def task_search_bar():
    task_search = widgets.Text(
        value="",
        placeholder="Task ID",
        description="Search for a task:",
        disabled=False
        )
    display(task_search)

    def handle_submit(sender):
        pp = pprint.PrettyPrinter()
        pp.pprint(ray.global_state.task_table(task_search.value))

    task_search.on_submit(handle_submit)


# Hard limit on the number of tasks to return to the UI client at once
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号