Skip to content

Render DataFrames as interactive notebook tables - #94

Merged
TorreyBetts merged 2 commits into
DataficationSDK:mainfrom
eosfor:pr/dataframe-formatter-extension
Aug 25, 2026
Merged

TorreyBetts merged 2 commits into
DataficationSDK:mainfrom
eosfor:pr/dataframe-formatter-extension

Conversation

@eosfor

@eosfor eosfor commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add a packaged Verso.DataFrame extension for Microsoft.Data.Analysis.DataFrame values
  • render DataFrames as theme-aware, scrollable HTML tables with column names and types, sticky headers, null styling, HTML encoding, and a bounded 100-row preview
  • recognize DataFrames and unwrap PowerShell PSObject values through reflection
  • integrate the formatter into the CLI, Blazor editor, and VS Code host
  • add unit tests plus built-in extension discovery coverage
  • document DataFrame table support and its place in the execution pipeline

Why

PowerShell data-analysis modules can expose Microsoft.Data.Analysis.DataFrame, but the default output only reveals the object's Columns and Rows properties. A notebook needs a readable table while preserving extension isolation from the language kernel that owns the runtime assembly.

The extension deliberately has no compile-time dependency on Microsoft.Data.Analysis. It recognizes and reads the public DataFrame shape through reflection, avoiding type-identity conflicts when PowerShell loads a different version or load context.

User impact

Both implicit PowerShell output and explicit display now produce the same table:

Import-Module DataFrame
$penguins = Import-DataFrame ./data/penguins.csv

$penguins
Display $penguins

Manual validation used the Palmer Penguins dataset: 344 rows and 8 columns, with the preview correctly reporting Showing 100 of 344 rows.

Validation

  • dotnet test Verso.sln --no-restore
  • Verso.DataFrame.Tests: 11 passed
  • CLI discovery reports verso.dataframe.formatter
  • package inspection confirms that Verso.DataFrame has no Microsoft.Data.Analysis dependency
  • manually verified implicit output and Display $penguins using the PowerShell DataFrame module

The full solution test suite passes. Existing dependency-analysis and documentation warnings are unchanged.

@eosfor
eosfor force-pushed the pr/dataframe-formatter-extension branch from 833cec5 to a4eb66b Compare August 1, 2026 04:14
@eosfor
eosfor force-pushed the pr/dataframe-formatter-extension branch from a4eb66b to 11b55d4 Compare August 6, 2026 05:00
@eosfor
eosfor marked this pull request as ready for review August 6, 2026 06:39
@eosfor

eosfor commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Hi @TorreyBetts ! When you have a chance, could you please review PR #94?

I’ve rebased it onto the current main and removed the commits that were already merged through #93. It now contains only the two DataFrame-specific commits, has no conflicts, and all CI checks are passing.

Thanks!

@TorreyBetts

Copy link
Copy Markdown
Contributor

Hi @TorreyBetts ! When you have a chance, could you please review PR #94?

I’ve rebased it onto the current main and removed the commits that were already merged through #93. It now contains only the two DataFrame-specific commits, has no conflicts, and all CI checks are passing.

Thanks!

Verso takes contributions under the DCO, and for an MIT project the value of that is a clean provenance chain on every commit, so CONTRIBUTING.md asks for a real name and a reachable email rather than a handle and a GitHub noreply address.

If that's not something you want to update your commit with, it's okay. Let me know and I'll recreate your work on my end and make sure you get credited for it.

Andrey Vernigora added 2 commits August 24, 2026 20:41
@eosfor
eosfor force-pushed the pr/dataframe-formatter-extension branch from 11b55d4 to 7e4782f Compare August 25, 2026 03:41
@eosfor

eosfor commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Hi @TorreyBetts ! When you have a chance, could you please review PR #94?
I’ve rebased it onto the current main and removed the commits that were already merged through #93. It now contains only the two DataFrame-specific commits, has no conflicts, and all CI checks are passing.
Thanks!

Verso takes contributions under the DCO, and for an MIT project the value of that is a clean provenance chain on every commit, so CONTRIBUTING.md asks for a real name and a reachable email rather than a handle and a GitHub noreply address.

If that's not something you want to update your commit with, it's okay. Let me know and I'll recreate your work on my end and make sure you get credited for it.

Thanks for clarifying. I’ve updated both commits to use my real name and reachable email for the author, committer, and Signed-off-by fields, then force-pushed the corrected history.

The code itself is unchanged, and the PR remains conflict-free. The CI checks should run again shortly.

@TorreyBetts
TorreyBetts merged commit 2349f6d into DataficationSDK:main Aug 25, 2026
10 checks passed
TorreyBetts pushed a commit that referenced this pull request Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants