Skip to content
Discussion options

You must be logged in to vote

You're on the right track, visible=False is the intended lever here. There's no built-in scrolling viewport for Progress, so hiding finished tasks so the active ones stay on screen is the way people do this.

Two ways to do it:

# hide completed tasks (keeps them in the object, just not rendered)
progress.update(task_id, visible=False)

# or drop them entirely once you're done with them
progress.remove_task(task_id)

remove_task is a bit cleaner if you don't need the completed tasks around anymore, it takes them out of the render completely instead of just flagging them invisible. Either one shifts the still-running tasks up into view as the ones above finish, which is the "scroll" effect yo…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@willmcgugan
Comment options

Comment options

You must be logged in to vote
1 reply
@pdc1
Comment options

Answer selected by pdc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants