feat: add DataFusionFormatter#9338
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
Light2Dark
reviewed
Apr 23, 2026
Light2Dark
left a comment
Member
There was a problem hiding this comment.
Would you want to add tests? Under test_formatters
Contributor
There was a problem hiding this comment.
Pull request overview
Adds first-class formatting support for Apache DataFusion DataFrame objects so they render deterministically in marimo (instead of blank/erroring), aligning DataFusion with other supported dataframe engines.
Changes:
- Introduces
DataFusionFormatterwith an opinionated formatter that renders viamarimo’s interactivetable. - Registers
DataFusionFormatterin the third-party formatter factory map so it activates whendatafusionis imported.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| marimo/_output/formatters/formatters.py | Registers the new DataFusion formatter factory for import-time activation. |
| marimo/_output/formatters/df_formatters.py | Implements DataFusionFormatter using Arrow conversion + table(...) rendering with fallback logging. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Light2Dark
approved these changes
Apr 23, 2026
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.

📝 Summary
Datafusion previously didn't have a formatter so showing the dataframe was undefined (blank on local, an error on molab).
Closes #9337
📋 Pre-Review Checklist
✅ Merge Checklist