-
Notifications
You must be signed in to change notification settings - Fork 68
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
observe triggers twice when doing a round trip #85
Comments
That is really weird... I displayed the In the meantime I can only try to help you with your use case. If what you want to do is format the float numbers in the cells you can do: import ipysheet
sheet = ipysheet.sheet()
ipysheet.cell(0, 0, -0.4, numeric_format='0.000')
display(sheet) |
Thanks @martinRenou
I tried to replicate the issue using core widgets ( Let me know if you have any ideas p.s. Do you think #66 is unrelated? |
I honestly have no clue. This is really internal behavior of The thing is that you are setting the value of the cell in the callback of an |
Related to #66
To illustrate, a simple app that formats floating point user input
This puts the following in the
output
widget:This shows that there's an extra trait notification, trying to "update" the new value to the original input.
Setting
as_list = False
uses a scalar instead of a list and does not suffer from this problemThe double notification in the
as_list = True
case leads to flickering and I'm not sure how to work around it yet.The text was updated successfully, but these errors were encountered: