Optional progress bar for intensive incremental operations
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 cfa 使用的聚合路径以及相应的交互式 Python 入口点;该 issue 未列出任何文件或测试。确定进度条、spinner 或计数器的范围以及全局配置的行为,然后验证这些入口点中默认启用和禁用的情况。
由索引模型根据 Issue 内容生成。
描述
For select operations that may take a non-negligible time to complete (from the perspective of a user), it could be useful to display small indicators of the progression of the operation whilst it is running in either interactive Python or on the command-line (i.e. for cfa, since aggregation is one of the main operations I have in mind that can necessarily be time-consuming for specifically inputs).
Notably, this could be:
- a progress bar for operations that can be broken into incremental steps of progression, e.g. each of the known and registered numbers of iterations through a core loop;
- perhaps a spinner or counter in the case that there is no simple or accurate way to indicate a proportion of progress having been made;
so that the user can know roughly how long they can expect or wait for the completion, or in the latter case at least see visually and be more confident that the operation hasn't stalled.
(As we have seen, Dask has a similar feature for diagnostics etc.:

)
There may be some users that don't want this feature so I suggest we have a global configuration option to disable it, but enable by default.
Implementation options
It wouldn't be difficult to code up a primitive progress bar and spinner, but for something available out-of-the-box and with more options and support, I think it would be better to use a dedicated progress bar library.
There are various such options for Python (there's a good summary here) but I think tqdm seems the best choice at the present time for features, low overhead, support available etc.
- 主要语言
- Python
- 星标
- 150
- 派生
- 23
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NCAS-CMS/cf-python 的其他 Issue
-
code tidy
难度 2/5 1-3 小时 新手友好度 76/100
-
bug?
-
release
-
enhancement
-
bug
难度 3/5 1-2 天 新手友好度 45/100
查看 NCAS-CMS/cf-python 的全部 Issue
相似的 Issue
-
area/auth bug comp/agent P3 platform/discord type/security
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#117848 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
bancolombia/sentinel#23 ·
-
test md 未关闭CI
难度 2/5 1-3 小时 新手友好度 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
难度 2/5 1-3 小时 新手友好度 74/100
langchain-ai/deepagents#6450 ·
-
bug client
难度 2/5 1-3 小时 新手友好度 88/100