Skip to content

Improve progress bar control #2

@MalloryWittwer

Description

@MalloryWittwer

Currently, even if we know the current iteration and the total number of iterations an algorithm takes on the server side, we cannot easily share this information with the client. Instead, the default "ininite progress bar" is used until the algorithm finishes running.

To improve this, we could create a Progress data layer which would be used like:

for k in range(max_iter):
    ...
    yield sk.Progress(k, max_iter)

In this case, the client would react by updating the progress bar in the UI (or tqdm) at each iteration. We could also use this method to handle progress updates in the tiling case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions