@@ -23,15 +23,14 @@ import * as localize from '../../../common/utils/localize';
23
23
import { noop } from '../../../common/utils/misc' ;
24
24
import { IServiceContainer } from '../../../ioc/types' ;
25
25
import { Identifiers , LiveShare , LiveShareCommands , Settings } from '../../constants' ;
26
- import { KernelSelector } from '../../jupyter/kernels/kernelSelector' ;
26
+ import { KernelSelector , KernelSpecInterpreter } from '../../jupyter/kernels/kernelSelector' ;
27
27
import { HostJupyterNotebook } from '../../jupyter/liveshare/hostJupyterNotebook' ;
28
28
import { LiveShareParticipantHost } from '../../jupyter/liveshare/liveShareParticipantMixin' ;
29
29
import { IRoleBasedObject } from '../../jupyter/liveshare/roleBasedFactory' ;
30
30
import { IKernelLauncher } from '../../kernel-launcher/types' ;
31
31
import { ProgressReporter } from '../../progress/progressReporter' ;
32
32
import {
33
33
IDataScienceFileSystem ,
34
- IJupyterKernelSpec ,
35
34
INotebook ,
36
35
INotebookExecutionInfo ,
37
36
INotebookExecutionLogger ,
@@ -168,7 +167,7 @@ export class HostRawNotebookProvider
168
167
) ;
169
168
170
169
// Get the execution info for our notebook
171
- const info = await this . getExecutionInfo ( kernelSpecInterpreter . kernelSpec ) ;
170
+ const info = await this . getExecutionInfo ( kernelSpecInterpreter ) ;
172
171
173
172
if ( rawSession . isConnected ) {
174
173
// Create our notebook
@@ -213,12 +212,12 @@ export class HostRawNotebookProvider
213
212
}
214
213
215
214
// Get the notebook execution info for this raw session instance
216
- private async getExecutionInfo ( kernelSpec ?: IJupyterKernelSpec ) : Promise < INotebookExecutionInfo > {
215
+ private async getExecutionInfo ( kernelSpecInterpreter : KernelSpecInterpreter ) : Promise < INotebookExecutionInfo > {
217
216
return {
218
217
connectionInfo : this . getConnection ( ) ,
219
218
uri : Settings . JupyterServerLocalLaunch ,
220
- interpreter : undefined ,
221
- kernelSpec : kernelSpec ,
219
+ interpreter : kernelSpecInterpreter . interpreter ,
220
+ kernelSpec : kernelSpecInterpreter . kernelSpec ,
222
221
workingDir : await calculateWorkingDirectory ( this . configService , this . workspaceService , this . fs ) ,
223
222
purpose : Identifiers . RawPurpose
224
223
} ;
0 commit comments