Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed May 3, 2023
1 parent edf15cb commit 3cb7d1a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/kernels/jupyter/finder/remoteKernelFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export class RemoteKernelFinder implements IRemoteKernelFinder, IDisposable {

private async getRemoteConnectionInfo(displayProgress: boolean = true): Promise<IJupyterConnection | undefined> {
const ui = new DisplayOptions(!displayProgress);
console.log(ui.disableUI);
return this.jupyterConnection.createConnectionInfo({
serverId: this.serverUri.serverId
});
Expand Down
5 changes: 5 additions & 0 deletions src/kernels/jupyter/serviceRegistry.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import {
import { IJupyterCommandFactory, IJupyterSubCommandExecutionService } from './types.node';
import { RemoteKernelFinderController } from './finder/remoteKernelFinderController';
import { KernelConnectionSessionCreator } from './launcher/kernelConnectionSessionCreator';
import { JupyterKernelConnectionSessionCreator } from './launcher/jupyterKernelConnectionSessionCreator';

export function registerTypes(serviceManager: IServiceManager, _isDevMode: boolean) {
serviceManager.add<IJupyterCommandFactory>(IJupyterCommandFactory, JupyterCommandFactory);
Expand Down Expand Up @@ -126,6 +127,10 @@ export function registerTypes(serviceManager: IServiceManager, _isDevMode: boole
IKernelConnectionSessionCreator,
KernelConnectionSessionCreator
);
serviceManager.addSingleton<JupyterKernelConnectionSessionCreator>(
JupyterKernelConnectionSessionCreator,
JupyterKernelConnectionSessionCreator
);
serviceManager.addSingleton<IJupyterBackingFileCreator>(IJupyterBackingFileCreator, BackingFileCreator);
serviceManager.addSingleton<IJupyterRequestCreator>(IJupyterRequestCreator, JupyterRequestCreator);
serviceManager.addSingleton<IJupyterRequestAgentCreator>(IJupyterRequestAgentCreator, RequestAgentCreator);
Expand Down
5 changes: 5 additions & 0 deletions src/kernels/jupyter/serviceRegistry.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
} from './types';
import { RemoteKernelFinderController } from './finder/remoteKernelFinderController';
import { KernelConnectionSessionCreator } from './launcher/kernelConnectionSessionCreator';
import { JupyterKernelConnectionSessionCreator } from './launcher/jupyterKernelConnectionSessionCreator';

export function registerTypes(serviceManager: IServiceManager, _isDevMode: boolean) {
serviceManager.addSingleton<IJupyterNotebookProvider>(IJupyterNotebookProvider, JupyterNotebookProvider);
Expand All @@ -62,6 +63,10 @@ export function registerTypes(serviceManager: IServiceManager, _isDevMode: boole
IKernelConnectionSessionCreator,
KernelConnectionSessionCreator
);
serviceManager.addSingleton<JupyterKernelConnectionSessionCreator>(
JupyterKernelConnectionSessionCreator,
JupyterKernelConnectionSessionCreator
);
serviceManager.addSingleton<IJupyterBackingFileCreator>(IJupyterBackingFileCreator, BackingFileCreator);
serviceManager.addSingleton<JupyterCommandLineSelector>(JupyterCommandLineSelector, JupyterCommandLineSelector);
serviceManager.addSingleton<IJupyterServerProvider>(IJupyterServerProvider, NotebookServerProvider);
Expand Down

0 comments on commit 3cb7d1a

Please sign in to comment.