@@ -105,6 +105,7 @@ import { ProductService } from '../../client/common/installer/productService';
105
105
import { IInstallationChannelManager , IProductPathService , IProductService } from '../../client/common/installer/types' ;
106
106
import { InterpreterPathService } from '../../client/common/interpreterPathService' ;
107
107
import { BrowserService } from '../../client/common/net/browser' ;
108
+ import { HttpClient } from '../../client/common/net/httpClient' ;
108
109
import { IS_WINDOWS } from '../../client/common/platform/constants' ;
109
110
import { PathUtils } from '../../client/common/platform/pathUtils' ;
110
111
import { RegistryImplementation } from '../../client/common/platform/registry' ;
@@ -145,6 +146,7 @@ import {
145
146
IExperimentsManager ,
146
147
IExtensionContext ,
147
148
IExtensions ,
149
+ IHttpClient ,
148
150
IInstaller ,
149
151
IInterpreterPathService ,
150
152
IMemento ,
@@ -192,6 +194,7 @@ import { InteractiveWindow } from '../../client/datascience/interactive-window/i
192
194
import { InteractiveWindowCommandListener } from '../../client/datascience/interactive-window/interactiveWindowCommandListener' ;
193
195
import { IPyWidgetHandler } from '../../client/datascience/ipywidgets/ipywidgetHandler' ;
194
196
import { IPyWidgetMessageDispatcherFactory } from '../../client/datascience/ipywidgets/ipyWidgetMessageDispatcherFactory' ;
197
+ import { IPyWidgetScriptSource } from '../../client/datascience/ipywidgets/ipyWidgetScriptSource' ;
195
198
import { JupyterCommandFactory } from '../../client/datascience/jupyter/interpreter/jupyterCommand' ;
196
199
import { JupyterCommandFinder } from '../../client/datascience/jupyter/interpreter/jupyterCommandFinder' ;
197
200
import { JupyterCommandInterpreterDependencyService } from '../../client/datascience/jupyter/interpreter/jupyterCommandInterpreterDependencyService' ;
@@ -535,6 +538,8 @@ export class DataScienceIocContainer extends UnitTestIocContainer {
535
538
when ( this . webPanelProvider . create ( anything ( ) ) ) . thenCall ( this . onCreateWebPanel . bind ( this ) ) ;
536
539
if ( this . uiTest ) {
537
540
this . serviceManager . addSingleton < IWebPanelProvider > ( IWebPanelProvider , WebBrowserPanelProvider ) ;
541
+ this . serviceManager . add < IInteractiveWindowListener > ( IInteractiveWindowListener , IPyWidgetScriptSource ) ;
542
+ this . serviceManager . addSingleton < IHttpClient > ( IHttpClient , HttpClient ) ;
538
543
} else {
539
544
this . serviceManager . addSingletonInstance < IWebPanelProvider > (
540
545
IWebPanelProvider ,
@@ -622,6 +627,7 @@ export class DataScienceIocContainer extends UnitTestIocContainer {
622
627
) ;
623
628
const mockExtensionContext = TypeMoq . Mock . ofType < IExtensionContext > ( ) ;
624
629
mockExtensionContext . setup ( ( m ) => m . globalStoragePath ) . returns ( ( ) => os . tmpdir ( ) ) ;
630
+ mockExtensionContext . setup ( ( m ) => m . extensionPath ) . returns ( ( ) => os . tmpdir ( ) ) ;
625
631
this . serviceManager . addSingletonInstance < IExtensionContext > ( IExtensionContext , mockExtensionContext . object ) ;
626
632
627
633
const mockServerSelector = mock ( JupyterServerSelector ) ;
@@ -1403,7 +1409,7 @@ export class DataScienceIocContainer extends UnitTestIocContainer {
1403
1409
variableQueries : [ ] ,
1404
1410
jupyterCommandLineArguments : [ ] ,
1405
1411
disableJupyterAutoStart : true ,
1406
- widgetScriptSources : [ ]
1412
+ widgetScriptSources : [ 'jsdelivr.com' , 'unpkg.com' ]
1407
1413
} ;
1408
1414
pythonSettings . jediEnabled = false ;
1409
1415
pythonSettings . downloadLanguageServer = false ;
0 commit comments