StaticcreateCreate a service manager based on type and options.
Discriminated union of service manager options
Service manager instance
// Mock service manager (no execution)
const mock = ServiceManagerFactory.create({ type: 'mock' });
// Local kernel service manager (VS Code Python)
const local = ServiceManagerFactory.create({
type: 'local',
kernelId: 'abc-123',
kernelName: 'python3',
url: 'http://localhost:8888'
});
// Remote service manager (Jupyter server)
const remote = ServiceManagerFactory.create({
type: 'remote',
serverSettings: mySettings
});
StaticgetGet the type of a service manager if identifiable. Returns 'unknown' for managers created outside the factory.
Service manager to identify
Service manager type or 'unknown'
StaticisType guard to check if a service manager is a mock manager.
Service manager to check
True if manager is a mock service manager
Factory for creating Jupyter service managers. Centralizes service manager creation with type discrimination.