-
Notifications
You must be signed in to change notification settings - Fork 949
Data send multiple times to backend #1195
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
Comments
Looking at the source (also of backbone), I suggest changing |
Actually, changed will be reset on the next |
@jasongrout I've demonstated the bug here |
In your doubler example, you'll want to use |
👍 confirmed that works. |
While working on #1194, I noticed what I think is a bug. Take the following code:
Now in a next cell, you execute:
All is fine, the js logic with
state_lock
will avoid that this gets send to the python backend again, however, in the js side,s.model.change
still recorded thatdescription
was changed. If you now enter a digit in the IntText, it will trigger a save_changes in the IntSlider, and it will again send {description: 'world', ..} to the backend. This happens in many other cases. For instance, in my case, this is an array with a ~million entries, not something you'd like to send around multiple times.I am not sure how to resolve this, although happy to try.
PS: Is there any way to get a reference to a widgets in the js console, in ipyvolume is just set window.last_scatter = this; for debugging, but maybe there is a general way.
The text was updated successfully, but these errors were encountered: