diff --git a/src/sql/workbench/contrib/notebook/browser/notebookActions.ts b/src/sql/workbench/contrib/notebook/browser/notebookActions.ts index fe566dbe76..2c2ab8f465 100644 --- a/src/sql/workbench/contrib/notebook/browser/notebookActions.ts +++ b/src/sql/workbench/contrib/notebook/browser/notebookActions.ts @@ -512,7 +512,7 @@ export class AttachToDropdown extends SelectBox { //Changes kernel based on connection attached to if (this.model.kernelAliases.includes(connectionProfile.serverCapabilities.notebookKernelAlias)) { this.model.changeKernel(connectionProfile.serverCapabilities.notebookKernelAlias); - } else { + } else if (this.model.clientSession.kernel.name === 'SQL') { this.model.changeKernel('SQL'); } return true;