ipywidgets
ipywidgets copied to clipboard
FileUpload displayed counter should be optional
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.
really confusing counter, why still exists?
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!
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.