Skip to content
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

Backport echo_update messages to 7.x #3400

Merged
merged 8 commits into from
Mar 10, 2022
Merged

Conversation

jasongrout
Copy link
Member

@jasongrout jasongrout commented Mar 2, 2022

This backports the combination of #3195 and #3394 to 7.x.

It's probably easiest to compare this PR with the squashed commit containing #3195 and #3394, i.e., 56df723

@jasongrout jasongrout added this to the 7.7 milestone Mar 2, 2022
@jasongrout jasongrout marked this pull request as draft March 2, 2022 10:19
We have to explicitly use hold_sync in the test, since jupyter-widgets#3271 was targeted to 8.0 and not backported to 7.x.
We do this for backwards compatibility, so there are no surprises. During 7.x,
you can opt in to widget update echoing by setting the environment variable
or by setting the module-level variable.
@jasongrout
Copy link
Member Author

@vidartf - from our discussion yesterday, I now have two test files for testing setting widget state. One is exactly the one that we had before (test_set_state.py), and the other (test_set_state_echo.py) sets the echoing to happen and tests the new results from master.

@jasongrout jasongrout mentioned this pull request Mar 3, 2022
3 tasks
@jasongrout jasongrout marked this pull request as ready for review March 3, 2022 09:36
@jasongrout
Copy link
Member Author

@vidartf - I think this is ready for review too. This backports the echo_update message to 7.x

@jasongrout jasongrout mentioned this pull request Mar 4, 2022
4 tasks
vidartf added 2 commits March 9, 2022 12:29
As the code in test_set_state_noecho was mostly a copy, I tried to make it more DRY.
ipywidgets/widgets/tests/test_interaction.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants