Restart kernel initial implementation (#18835)

* Restart kernel initial implementation

* Update notebook extension TestKernel

* PR comments
This commit is contained in:
Chris LaFreniere
2022-03-29 12:56:52 -07:00
committed by GitHub
parent 8537a30996
commit af3d307d40
14 changed files with 95 additions and 14 deletions

View File

@@ -128,6 +128,24 @@ declare module 'azdata' {
* An event that is emitted when a [notebook document](#NotebookDocument) is closed.
*/
export const onDidCloseNotebookDocument: vscode.Event<NotebookDocument>;
export interface IKernel {
/**
* Restart a kernel.
*
* #### Notes
* Uses the [Jupyter Notebook API](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyter/notebook/4.x/notebook/services/api/api.yaml#!/kernels).
*
* The promise is fulfilled on a valid response and rejected otherwise.
*
* It is assumed that the API call does not mutate the kernel id or name.
*
* The promise will be rejected if the kernel status is `Dead` or if the
* request fails or the response is invalid.
*/
restart(): Thenable<void>;
}
}
/**