ipywidgets icon indicating copy to clipboard operation
ipywidgets copied to clipboard

FileUpload displayed counter should be optional

Open kebwi opened this issue 5 years ago • 3 comments
trafficstars

Not all users necessarily want the FileUpload button to display the upload-count in parentheses. Some applications and interface designs/layouts may require fine-grained control of the look of the interface and could find the counter extraneous or simply "busying". I have found no way to get rid of it. I can reset it to 0 by directly assigning _counter to 0 when the button is activated. I can assign my own text description, icon, button_style (color) to the button. I have lots of control over the look of the button...but I cannot for the life of me find a way to get rid of the counter despite my best efforts to dig through the internal variables of the object. I think it is entirely reasonable to make the counter's presence on the button optional.

Thanks.

kebwi avatar Jun 19 '20 00:06 kebwi

really confusing counter, why still exists?

badiku avatar Dec 24 '20 00:12 badiku

The counter should now display the number of uploaded files instead of being incremented after each upload.

Which was probably implemented in https://github.com/jupyter-widgets/ipywidgets/pull/2666.

Would you like to try the new behavior with the alpha release of ipywidgets 8?

pip install ipywidgets==8.0.0a3

Thanks!

jtpio avatar Feb 17 '21 20:02 jtpio

It would be nice to have an option to remove the counter. We have a GUI that loads default parameter files at composition, but users can later load their own data file with the FileUpload button. It's a bit confusing to the user to see a 0 at the start when there are pre-loaded loaded parameters. It would be nice to be able to turn off the default counter so we can update the display with a custom text that reflects our application's state.

gtdang avatar Dec 12 '23 21:12 gtdang