Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[.Net][Feature Request]: Support python code execution in AutoGen.DotnetInteractive #3316

Closed
LittleLittleCloud opened this issue Aug 7, 2024 · 0 comments · Fixed by #3317 or #3337
Closed
Assignees

Comments

@LittleLittleCloud
Copy link
Collaborator

LittleLittleCloud commented Aug 7, 2024

dotnet-interactive now support jupyter kernel connection. So we can bring this feature to AutoGen.DotnetInteractive package

Usage

Suppose python and jupyter are correctly configured, the following code shows how to send python code to jupyter kernel to execute

var kernel = DotnetInteractiveKernelBuilder
            .CreateDefaultBuilder() // add C# and F# kernel
            .AddPythonKernel(venv: "python3", kernelName: "python3")
            .Build();

var pythonCode = """
print("hello world from python")
"""
var result = kernel.RunSubmitCodeCommandAsync(pythonCode, "python3");
@LittleLittleCloud LittleLittleCloud changed the title [Feature Request]: [.Net] Add AutoGen.CodeInterpreter package [.Net] [Feature Request]: Support python code execution in AutoGen.DotnetInteractive Aug 7, 2024
@LittleLittleCloud LittleLittleCloud changed the title [.Net] [Feature Request]: Support python code execution in AutoGen.DotnetInteractive [.Net][Feature Request]: Support python code execution in AutoGen.DotnetInteractive Aug 7, 2024
@LittleLittleCloud LittleLittleCloud self-assigned this Aug 7, 2024
@LittleLittleCloud LittleLittleCloud added this to the AutoGen.Net 0.1.0 milestone Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment