MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / isPythonKernelSpec

Function isPythonKernelSpec

src/kernels/helpers.ts:480–483  ·  view source on GitHub ↗
(kernelSpec?: IJupyterKernelSpec)

Source from the content-addressed store, hash-verified

478 return model?.language === PYTHON_LANGUAGE || isPythonKernelSpec(kernelSpec);
479}
480export function isPythonKernelSpec(kernelSpec?: IJupyterKernelSpec): boolean {
481 const language = (kernelSpec?.language || '').toLowerCase();
482 return language === PYTHON_LANGUAGE;
483}
484export function getKernelConnectionLanguage(kernelConnection?: KernelConnectionMetadata): string | undefined {
485 if (!kernelConnection) {
486 return;

Callers 2

getKernelIdFunction · 0.85
isPythonKernelConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected