Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close Progress for the specified component #8016

Closed
1 task done
DuskXi opened this issue Apr 13, 2024 · 4 comments
Closed
1 task done

Close Progress for the specified component #8016

DuskXi opened this issue Apr 13, 2024 · 4 comments

Comments

@DuskXi
Copy link

DuskXi commented Apr 13, 2024

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.

I need to update Plot information to gradient every epoch during the training process, but progress covers all outputs. At the same time, it seems that I also found in the experiment that gr.update() is not allowed to be used in click, and the call is invalid. This directly causes me to not be able to use progress if I want to update the chart. If I want to use progress, I have to endure the problem of the chart being overwritten.

Describe the solution you'd like
Provide a show_progress parameter in Component to determine whether this component displays a progress bar on the web.

Or use a context manager similar to with ShowProgress():

Or directly provide a component named ProgressBar to separate the progress bar from the component box that needs to display data.

Additional context
Add any other context or screenshots about the feature request here.

@abidlabs
Copy link
Member

Hi @DuskXi this show_progress parameter exists but it’s on the event itself e.g. click() rather than in the component!

@abidlabs abidlabs closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
@Josef-Ouano
Copy link

I concur with his proposal.
its kind of a bummer the progress bar covers all outputs, instead of being able to turn off individually by component.
Is it possible to put this on the component level?

@elismasilva
Copy link

@abidlabs could be possible for disable show_progress like show_progress = False by output compontent.

If my event has outputs = [component1, component2]
we could have like this, show_progress=[True, False] it same component order.

@abidlabs
Copy link
Member

Yeah tbh I think that's a good idea, I'll comment on a relevant issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants