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

Dynamically load IPyWidget 8 scripts #12608

Closed
wants to merge 8 commits into from
Closed

Conversation

DonJayamanne
Copy link
Contributor

For #8552
Related PR in widgets npm microsoft/vscode-jupyter-ipywidgets#19

TODO:

  • Ensure this will work with the latest changes for fallback
  • Ensure this will work with loading existing widget state (as that requires dynamic loading)

const notebookComms = editors
.filter((editor) => this.notebookCommunications.has(editor))
.map((editor) => this.notebookCommunications.get(editor)!);
notebookComms.forEach((comm) => comm.changeController(e.controller));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why these changes?

@@ -118,18 +124,15 @@ export class NotebookIPyWidgetCoordinator implements IExtensionSyncActivationSer
.forEach((editor) => {
const comms = this.notebookCommunications.get(editor);
this.notebookCommunications.delete(editor);
if (comms) {
comms.dispose();
if (comms && comms.controller !== e.controller.controller) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why these changes?

'ipywidgets.js'
)
);
// scripts.push(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update build scripts to ensure dev compile and release modes have the same paths, as this is a debt item and we'd like to remove this debt now.

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.

1 participant