-
Notifications
You must be signed in to change notification settings - Fork 338
Add support for IPyWidgets 8 #12754
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
Add support for IPyWidgets 8 #12754
Conversation
094de07
to
6bbc470
Compare
} else if (kernel.resourceUri && (await this.fs.exists(kernel.resourceUri))) { | ||
} else if ( | ||
kernel.resourceUri && | ||
kernel.resourceUri.scheme !== 'untitled' && |
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.
Debt = we weren't checking if it was untitled,
No point chekcing if untitled files exist on disc or not, as the answer is obvious
src/kernels/kernelProvider.base.ts
Outdated
@@ -137,6 +138,7 @@ export abstract class BaseCoreKernelProvider implements IKernelProvider { | |||
`Disposing kernel associated with ${getDisplayPath(notebook.uri)}, isClosed=${notebook.isClosed}` | |||
); | |||
this.pendingDisposables.add(kernelToDispose.kernel); | |||
this.executions.get(kernelToDispose.kernel)?.dispose(); |
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.
debt
src/kernels/kernelExecution.ts
Outdated
@@ -71,6 +72,9 @@ export class NotebookKernelExecution implements INotebookKernelExecution { | |||
kernel.addHook('willRestart', (sessionPromise) => this.onWillRestart(sessionPromise), this, this.disposables); | |||
this.disposables.push(this._onPreExecute); | |||
} | |||
public dispose() { | |||
disposeAllDisposables(this.disposables); |
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.
debt
src/kernels/types.ts
Outdated
@@ -391,7 +393,7 @@ export interface IKernel extends IBaseKernel { | |||
readonly creator: 'jupyterExtension'; | |||
} | |||
|
|||
export interface INotebookKernelExecution { | |||
export interface INotebookKernelExecution extends IDisposable { |
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.
debt
} | ||
scripts.push( | ||
...[ | ||
Uri.joinPath( |
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.
All of these are now statically defined in package.json
3076acf
to
70af04f
Compare
70af04f
to
57e2fc3
Compare
pythonVersion: '3.10' | ||
tags: '@widgets' | ||
os: ubuntu-latest | ||
ipywidgetsVersion: '8' |
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.
Added Ci tgests for IPyWidgets 8
We need to have tests for both 7 & 8
livelossplot | ||
versioneer | ||
pythreejs | ||
ipywidgets |
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.
This is a copy of venv-test-requirements.txt
with the difference of having ipywidgets not pinned to a specific version
Fixes #8552