-
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
[Backport 7.x] Use control comm target in LabManager #3337
[Backport 7.x] Use control comm target in LabManager #3337
Conversation
Making it draft, I need to apply changes from #3335 |
@martinRenou said he plans to work on this this week for an upcoming 7.x minor release. |
5fa7a77
to
a524fe0
Compare
a524fe0
to
a8a9a35
Compare
It's updated :) |
@jasongrout @martinRenou I hope you don't mind if a stranger (at least for @martinRenou) asks questions in this thread :) I see that you have the notion of |
Hey @tkrabel-db :) We did some speed tests on the Voila implementation (which is exactly the one added in this PR), see voila-dashboards/voila#766 (comment) and voila-dashboards/voila#766 (comment). |
@martinRenou - do you mind if we rename As we've talked about before, it may be that |
- 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.
@martinRenou - I refined the loadFromKernel function to handle a few subtle asynchronous issues. For example, when a bunch of models are being created, it is important for the model registration to happen synchronously before any of the models are actually created, since one model might depend on another model in the same dump of data. I also noticed that it seemed we were using the same buffers slice, so I made sure to group buffers along with buffer paths. |
Thanks! |
@martinRenou looked at these last changes: https://gitter.im/jupyter-widgets/Lobby?at=62062b2803f27047822cde0c
|
@meeseeksdev please backport to master |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
Backport of #3335