A Jupyter Server that runs as a child process.
There can only be one running server at a time, since PageConfig is global. Any classes that use ServerConnection.ISettings such as ServiceManager should be instantiated after the server has fully started so they pick up the right PageConfig.
ServerConnection.ISettings
ServiceManager
PageConfig
const server = new JupyterServer();beforeAll(async () => { await server.start();}, 30000);afterAll(async () => { await server.shutdown();}); Copy
const server = new JupyterServer();beforeAll(async () => { await server.start();}, 30000);afterAll(async () => { await server.shutdown();});
Shut down the server, waiting for it to exit gracefully.
Start the server.
A promise that resolves with the url of the server
Error if another server is still running.
A Jupyter Server that runs as a child process.
Notes
There can only be one running server at a time, since PageConfig is global. Any classes that use
ServerConnection.ISettingssuch asServiceManagershould be instantiated after the server has fully started so they pick up the rightPageConfig.Example