Add a PowerShell DataFrame and Vega-Lite sample - #95
Draft
eosfor wants to merge 5 commits into
Draft
Conversation
Add a specialized formatter hook to execution contexts, distinguish generic fallback formatters, and centralize formatter resolution for both explicit Display calls and language kernels. Document the extension contract and cover priority, fallback, and failure behavior with tests. Signed-off-by: eosfor <9363027+eosfor@users.noreply.github.com>
Preserve raw PSObject results until the kernel can offer each runtime value to specialized IDataFormatter extensions. Batch contiguous unhandled objects through the existing PowerShell ETS renderer so native table formatting and mixed-output ordering remain intact. Signed-off-by: eosfor <9363027+eosfor@users.noreply.github.com>
Signed-off-by: eosfor <9363027+eosfor@users.noreply.github.com>
Signed-off-by: eosfor <9363027+eosfor@users.noreply.github.com>
Signed-off-by: eosfor <9363027+eosfor@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
This PR is stacked on #94, which is itself stacked on #93. Because the branches live in a fork, GitHub cannot use #94's fork branch as the base of an upstream PR. Until the parent PRs are merged, this diff also contains their commits. The sample-specific commit is
be2d5bb.Summary
Microsoft.Data.Analysis.DataFrameNAvalues, apply explicit column types, and render DataFrame previews, schema information, descriptive statistics, and grouped aggregatesWhy
#94 adds rich DataFrame rendering but intentionally contains no end-user walkthrough. This notebook provides a compact, recognizable dataset and demonstrates how the formatter fits into a complete PowerShell notebook workflow, including interactive browser-native visualization.
The sample keeps its Vega-Lite helper local to the notebook. That makes the workflow usable today without coupling the DataFrame formatter package to a charting library, while leaving room for a dedicated visualization extension later.
User impact
Users can run the notebook from top to bottom to see:
The
DataFramePowerShell module must be installed before starting Verso. The first run requires internet access for the public dataset and pinned Vega browser libraries. No CSV is written to disk, and the committed notebook contains no saved outputs or embedded dataset copy.Validation
dotnet run --project src/Verso.Cli/Verso.Cli.csproj --no-build -- run samples/notebooks/powershell/palmerpenguins/penguins.verso --output none --fail-fast.versodocument as JSON