Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Kernel Connector can return more than one kernel#2923

Merged
jonsequitur merged 1 commit into
dotnet:mainfrom
colombod:connect_multiple_kernels
Apr 19, 2023
Merged

Kernel Connector can return more than one kernel#2923
jonsequitur merged 1 commit into
dotnet:mainfrom
colombod:connect_multiple_kernels

Conversation

@colombod

Copy link
Copy Markdown
Member

No description provided.

@colombod
colombod requested a review from jonsequitur April 18, 2023 23:58
connector.CreateKernel = _createKernel;
return connector.CreateKernelAsync(commandLineContext.ParseResult.GetValueForOption(KernelNameOption));
var kernel = await connector.CreateKernelAsync(commandLineContext.ParseResult.GetValueForOption(KernelNameOption));
return new[] { kernel };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, this is an interesting pattern change. Seems like we'll now be waiting to create each kernel in the constructor. No concerns at the moment, just calling it out. I wonder if we could do IAsyncEnumerable. Dont know if we have netstandard constraints though (it only works 2.1 and above).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(We do have netstd concerns since the same code is compiled to netstd2.0 as well as part of the MS.DN.Interactive.VisualStudio.csproj)

update contract


update contract
@colombod
colombod force-pushed the connect_multiple_kernels branch from 8ab2e5e to b47850b Compare April 19, 2023 00:25
@jonsequitur
jonsequitur merged commit f8b12ce into dotnet:main Apr 19, 2023
@colombod
colombod deleted the connect_multiple_kernels branch April 19, 2023 14:32
@colombod colombod added the breaking change A pr that introduces a breaking change for users label May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

breaking change A pr that introduces a breaking change for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants