AbstractCreates a new session manager instance.
Jupyter server connection settings
Protected_Currently active session connection. Most custom managers support only one session at a time.
Protected_Signal emitted when connection to session fails.
Protected_Signal emitted when manager is disposed.
Protected_Disposal state flag.
Protected_Ready state flag.
Protected_Ready promise that resolves immediately.
Protected_Signal emitted when running sessions change.
Abstract ReadonlymanagerType identifier for this session manager.
Jupyter server connection settings
Signal emitted when session connection fails.
Signal emitted when manager is disposed.
Whether the manager is active and functional.
Whether the manager has been disposed.
Whether the manager is ready.
Promise that resolves when manager is ready.
Signal emitted when running sessions change.
Connect to an existing session.
Connection options (unused in base implementation)
Session connection
Dispose of the session manager and all resources.
Find a session by ID.
Session identifier
Session model if found
Find a session by path.
Notebook path
Session model if found
Get session model by ID.
Session identifier
Session model or undefined
ProtectedlogUnified logging helper.
Log message
Additional arguments
Refresh the list of running sessions. No-op for custom managers.
Request the list of running sessions from the server.
For custom managers (mock, local, Pyodide), returns the current active session. Remote managers should override this to query the actual Jupyter server.
Promise resolving to array of running session models
Shut down a specific session by ID.
Session identifier
Shut down all running sessions.
AbstractstartStart a new session. Must be implemented by subclasses.
Session creation options
OptionalconnectOptions: Omit<Session.ISessionConnection.IOptions, "model" | "serverSettings">Promise resolving to the new session connection
Stop session if needed (for compatibility).
Notebook path
Protectedvalidate
Abstract base class for session manager implementations.
Implements common Session.IManager interface methods that are identical across all manager types.
This class implements the standard JupyterLab Session.IManager interface for managing notebook sessions across different execution environments.
Example