Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

WIP Initial PowerShelll kernel prototype#751

Closed
TylerLeonhardt wants to merge 3 commits intodotnet:masterfrom
TylerLeonhardt:add-powershell-kernel
Closed

WIP Initial PowerShelll kernel prototype#751
TylerLeonhardt wants to merge 3 commits intodotnet:masterfrom
TylerLeonhardt:add-powershell-kernel

Conversation

@TylerLeonhardt
Copy link
Copy Markdown

@TylerLeonhardt TylerLeonhardt commented Jan 15, 2020

This handles the 3 basic messages:

  • HandleSubmitCode
  • HandleRequestCompletion
  • HandleCancelCurrentCommand (but is just a no-op at the moment)

Things pending in this PR:

  • Handling cancel
  • tests 😃

Example PowerShell notebook that came from this very change.

@TylerLeonhardt
Copy link
Copy Markdown
Author

The "order matters" issue can be fixed by using a similar solution to what we did with Azure Functions. Dropping this file for future reference
https://github.com/Azure/azure-functions-powershell-worker/blob/dev/src/Public/Commands/TracePipelineObjectCommand.cs

@TylerLeonhardt
Copy link
Copy Markdown
Author

Haven't addressed feedback yet but have addressed the "order matters" problem. See the example Notebook (in GitHub gists) to see the results of that work. It's using the same concept that Azure Functions to maintain order (a Trace-PipelineObject cmdlet).

KernelInvocationContext context,
IKernelCommand command)
{
context.Publish(
Copy link
Copy Markdown
Contributor

@jonsequitur jonsequitur Jan 23, 2020

Choose a reason for hiding this comment

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

We added a KernelInvocationContext.DisplayAsync extension method that might simplify this for you.

@TylerLeonhardt
Copy link
Copy Markdown
Author

Closing in favor of dotnet/interactive#9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants