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 loadFromKernel nodifications to 8.x #3388

Closed
wants to merge 2 commits into from

Conversation

ibdafna
Copy link
Member

@ibdafna ibdafna commented Feb 18, 2022

No description provided.

@github-actions
Copy link

Binder 👈 Launch a binder notebook on branch ibdafna/ipywidgets/control_comm_8

@ibdafna ibdafna requested a review from jasongrout February 18, 2022 01:13
@@ -507,7 +542,7 @@ export abstract class ManagerBase implements IWidgetManager {

let msg_id = '';
const info = new PromiseDelegate<Private.ICommUpdateData>();
comm.on_msg((msg: services.KernelMessage.ICommMsgMsg) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We lost a type annotation here that we should preserve.

@@ -370,11 +370,11 @@ This is implemented in ipywidgets 7.7.

### The `jupyter.widget.control` comm target

A kernel-side Jupyter widgets library registers a `jupyter.widget.control` comm target that is used for fetching all widgets states through a "one shot" comm message (one for all widget instances). Unlike the `jupyter.widget` comm target, the created comm is global to all widgets,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should ignore the changes to this file in this PR.

@@ -375,7 +375,7 @@ export abstract class ManagerBase implements IWidgetManager {
try {
const initComm = await this._create_comm(
CONTROL_COMM_TARGET,
uuid(),
utils.uuid(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
utils.uuid(),
uuid(),

@jasongrout
Copy link
Member

jasongrout commented Feb 18, 2022

I took at crack at automated porting this one commit too. Not sure if it is any more successful, but may be useful for comparison:

First, I slightly modified master to get it looking more like the 7.x before the commit in question:

jasongrout@7d46c91

Then I applied the patch from jasongrout@0296e03 while ignoring whitespace (something like git apply --ignore-whitespace diff-file.patch or something) to get:

jasongrout@92632cb

@jasongrout
Copy link
Member

jasongrout commented Feb 18, 2022

Thanks for working on this with me today. Since it was my request to port these to master, I went ahead and also worked on porting the has_model method to master too, and opened up a PR at #3389

Does #3389 cover us porting these two PRs to master?

@ibdafna
Copy link
Member Author

ibdafna commented Feb 18, 2022

@jasongrout many thanks!

@ibdafna ibdafna closed this Feb 18, 2022
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.

3 participants