-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Copy widget scripts to extension folder #11082
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11082 +/- ##
==========================================
- Coverage 61.42% 61.39% -0.03%
==========================================
Files 597 597
Lines 32752 32756 +4
Branches 4631 4631
==========================================
- Hits 20119 20112 -7
- Misses 11617 11626 +9
- Partials 1016 1018 +2
Continue to review full report at Codecov.
|
Kudos, SonarCloud Quality Gate passed!
|
) {} | ||
|
||
// tslint:disable-next-line:no-any | ||
public async create(options: IWebPanelOptions): Promise<IWebPanel> { | ||
const serverData = options.startHttpServer | ||
? await this.ensureServerIsRunning() | ||
: { port: undefined, token: undefined }; | ||
|
||
return new WebPanel(this.fs, this.disposableRegistry, serverData.port, serverData.token, options); | ||
// Allow loading resources from the `<extension folder>/tmp` folder when in webiviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey do you want to fix the 'workspace' root bug while you're changing this?
// Only if original file has been modified should we create a new copy of the sam file. | ||
const fileHash: string = await this.fs.getFileHash(localResource.fsPath); | ||
const uniqueFileName = sanitize(sha256().update(`${localResource.fsPath}${fileHash}`).digest('hex')); | ||
const targetFolder = await this.createTargetWidgetScriptsFolder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the name here should have 'promise' in it somewhere. looks like you forgot to call a function
'@jupyter-widgets/controls', | ||
'@jupyter-widgets/base', | ||
'@jupyter-widgets/output', | ||
'azureml_widgets' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work now? Meaning they put the source up on unpkg?
* Copy widget scripts to extension folder * Fix test
* Load widget scripts from CDN and/or local python interpreter (#10987) * Address sonar issues * Fix linter * Fixes * Better way to pas array buffer * Added comments * Oops * Copy widget scripts to extension folder (#11082) * Copy widget scripts to extension folder * Fix test * Remove aml scripts from extension (#11085) * Validate python when nb opened not on extension activates (#11087) For #10893 * Support workspace images in markdown cells (#11086) For #10893 * Fix functional tests for ipywidgets and download just chrome b… (#11093) For #11092 playwright downloads other browsers, we need just one chrome (as this is closest to what VSCode is built upon) * Added tests for k3d widget (#11133) For #10799, #11096 * Fix failing ipywidget tests (#11132) For #11099 * Update change log
For #11061