Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,16 @@ export class HostJupyterServer extends LiveShareParticipantHost(JupyterServerBas
// Otherwise create a new notebook.

// First we need our launch information so we can start a new session (that's what our notebook is really)
const launchInfo = await this.waitForConnect();
let launchInfo = await this.waitForConnect();
if (!launchInfo) {
throw this.getDisposedError();
}
// Create a copy of launch info, cuz we're modifying it here.
// This launch info contains the server connection info (that could be shared across other nbs).
// However the kernel info is different. The kernel info is stored as a property of this, hence create a separate instance for each nb.
launchInfo = {
...launchInfo
};

// Find a kernel that can be used.
// Do this only if kernel information has been provided in the metadata, else use the default.
Expand Down