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

Function getKernelService

src/standalone/api/unstable/index.ts:85–93  ·  view source on GitHub ↗
(serviceContainer: IServiceContainer)

Source from the content-addressed store, hash-verified

83 });
84}
85export function getKernelService(serviceContainer: IServiceContainer) {
86 const extensions = serviceContainer.get<IExtensions>(IExtensions);
87 sendTelemetryEvent(Telemetry.JupyterApiUsage, undefined, {
88 clientExtId: extensions.determineExtensionFromCallStack().extensionId,
89 pemUsed: 'registerRemoteServerProvider'
90 });
91 const kernelServiceFactory = serviceContainer.get<IExportedKernelServiceFactory>(IExportedKernelServiceFactory);
92 return kernelServiceFactory.getService();
93}
94export async function addRemoteJupyterServer(providerId: string, handle: string, serviceContainer: IServiceContainer) {
95 const extensions = serviceContainer.get<IExtensions>(IExtensions);
96 logger.error(

Callers 1

buildApiFunction · 0.90

Calls 4

sendTelemetryEventFunction · 0.90
getMethod · 0.65
getServiceMethod · 0.65

Tested by

no test coverage detected