@@ -12,6 +12,7 @@ import { CancellationToken, Event, EventEmitter, Uri } from 'vscode';
1212
1313import { ILiveShareApi , IWorkspaceService } from '../../common/application/types' ;
1414import { Cancellation , CancellationError } from '../../common/cancellation' ;
15+ import { PYTHON_LANGUAGE } from '../../common/constants' ;
1516import { traceInfo } from '../../common/logger' ;
1617import { IFileSystem , TemporaryDirectory } from '../../common/platform/types' ;
1718import { IProcessServiceFactory , IPythonExecutionFactory , SpawnOptions } from '../../common/process/types' ;
@@ -232,7 +233,7 @@ export class JupyterExecutionBase implements IJupyterExecution {
232233 private async enumerateInterpreterVersions ( ) : Promise < IRunnableJupyter [ ] > {
233234 // Find all interpreters that support jupyter notebook. That's the minimum required to start.
234235 const interpreters = await this . interpreterService . getInterpreters ( ) ;
235- const possible = await Promise . all ( interpreters . map ( this . getInterpreterVersion ) ) ;
236+ const possible = await Promise . all ( interpreters . map ( this . getInterpreterVersion . bind ( this ) ) ) ;
236237 return possible . filter ( p => p !== undefined ) as IRunnableJupyter [ ] ;
237238 }
238239
@@ -567,7 +568,7 @@ export class JupyterExecutionBase implements IJupyterExecution {
567568
568569 // For each get its details as we will likely need them
569570 const specDetails = await Promise . all ( specs . map ( async s => {
570- if ( s && s . path && s . path . length > 0 && await fs . pathExists ( s . path ) ) {
571+ if ( s && s . language === PYTHON_LANGUAGE && s . path && s . path . length > 0 && await fs . pathExists ( s . path ) ) {
571572 return this . interpreterService . getInterpreterDetails ( s . path ) ;
572573 }
573574 } ) ) ;
0 commit comments