Datalayer VS Code Extension - v0.0.4
    Preparing search index...
    • Function

      Creates a mock service manager that provides the JupyterLab service interfaces without actual execution capabilities. All service methods throw appropriate error messages indicating that kernel execution is not available.

      createMockServiceManager

      Returns IManager

      A mock service manager instance

      This mock service manager is used when:

      • Displaying notebooks without kernel execution
      • Demo or presentation modes
      • When actual kernel services are not available

      The mock includes:

      • Kernel specifications (python3 mock)
      • Disabled kernel and session management
      • Disabled contents management
      • Disabled settings and workspace management
      • Disabled terminal and nbconvert services
      const serviceManager = createMockServiceManager();
      // serviceManager.kernels.startNew() will throw an error
      // but serviceManager.kernelspecs.specs will return mock data