-
Notifications
You must be signed in to change notification settings - Fork 945
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
Port #3337 and #3377 to master #3389
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…le asynchronous issues - We need the models registered synchronously before they are actually created, so I broke the comm/model instantiation into two steps to make sure that new_model is the first synchronous call in its function. - renamed loadFromKernelSlow to loadFromKernelModels to be more descriptive - clean up a few obsolete comments - Make sure we are using the appropriate buffers for a given widget's state.
…manager base class From jupyter-widgets#3377. This simplifies our code that has had to work around get_model either returning undefined or a rejected promise if a model was not registered. This paves the way for a future get_model in 8.0 that is truly asynchronous, never returning undefined.
There still are a few more things I'll need to do to make has_model pervasive throughout the system that I'll work on tomorrow. |
This makes get_model() a true async function, simplifying how it is used through the codebase.
jasongrout
force-pushed
the
forwardport
branch
from
February 18, 2022 07:12
421fc90
to
8fc1fbf
Compare
jasongrout
force-pushed
the
forwardport
branch
from
February 18, 2022 07:15
8fc1fbf
to
7e260ad
Compare
ibdafna
approved these changes
Feb 18, 2022
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This ports relevant parts of #3337 and #3377 to master, and makes get_model signature backwards incompatible.
Fixes #3378
Fixes #3379