-
Notifications
You must be signed in to change notification settings - Fork 949
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
Hold sync during update from front-end is very un-ipywidgets like #3635
Comments
14 tasks
As discussed in the weekly widget meeting, the plan is to:
|
maartenbreddels
added a commit
to maartenbreddels/ipywidgets
that referenced
this issue
Nov 29, 2022
If we do, we get very inconsistent behaviour, see jupyter-widgets#3635 for more details and jupyter-widgets#3271 for the reasons to implement this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In #3271 we added the behavior that updates from the frontend will wrap the update of traits in a
hold_sync()
(which is released in>7, <=8.0.2
). This behavior feels to me un-ipywidget like (update a property, and the frontend reflects it).As a response to an event from the front end, very often, some calculation occurs, which takes a bit of time. Before and after that calculation, we often want to give the user some indicator that work is being done.
Now with 8.x we cannot set such an indicator (by changing a property, like description or disabled) on the widget that triggered the original event due to the
hold_sync()
context manager. Note that it is possible to change any other widget, just not the one we received the event from. This feels (as a user) very inconsistent.Reproduce
Code
7.x behaviour
In 7.x, this works as expected:
8.x behaviour
In 8.x, this does not work anymore:
Solution
I think we should no do a hold_sync, and do a new release that removes this, considering this a bug.
The text was updated successfully, but these errors were encountered: