Skip to content

closes 7690, adds: @app.cell(expanded_output=True)#9141

Draft
csp256 wants to merge 2 commits intomarimo-team:mainfrom
csp256:issue_7690_expand_output
Draft

closes 7690, adds: @app.cell(expanded_output=True)#9141
csp256 wants to merge 2 commits intomarimo-team:mainfrom
csp256:issue_7690_expand_output

Conversation

@csp256
Copy link
Copy Markdown

@csp256 csp256 commented Apr 11, 2026

📝 Summary

Closes #7690

This introduces the ability to annotate a cell with @app.cell(expand_output=True) to cause that cell's output to be automatically expanded by default when the user loads the notebook.

This PR does not provide a way to cause this behavior from the web UI.

📋 Pre-Review Checklist

  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • Video or media evidence is provided for any visual changes (optional).

✅ Merge Checklist

  • I have read the contributor guidelines.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Tests have been added for the changes made.

2026-04-10 23-47-58

I have read the CLA Document and I hereby sign the CLA

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Apr 11, 2026 5:01am

Request Review

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 11, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@github-actions github-actions Bot added the bash-focus Area to focus on during release bug bash label Apr 11, 2026
@csp256
Copy link
Copy Markdown
Author

csp256 commented Apr 11, 2026

I have read the CLA Document and I hereby sign the CLA

@csp256
Copy link
Copy Markdown
Author

csp256 commented Apr 11, 2026

recheck

@csp256 csp256 force-pushed the issue_7690_expand_output branch from ce64b7a to da143a9 Compare April 11, 2026 04:59
@akshayka
Copy link
Copy Markdown
Contributor

Hey @csp256, in #7690 we decided against per-cell configuration. We were converging toward pyproject.toml / user configuration:

# /// script
# [tool.marimo.display]
# expand_outputs = True
# ///

I think this needs a bit more discussion in the issue before proceeding for PR. There were unresolved questions of how a global expand outputs configuration would interact with possible configuration for text outputs. It would be good to study what other projects do as well, and form an opinion of what works and what doesn't

@csp256
Copy link
Copy Markdown
Author

csp256 commented Apr 11, 2026

I guess I will continue the discussion on the issue. While I agree broad defaults are a good idea, I think that the per-cell configurable behavior has some benefits.

@csp256
Copy link
Copy Markdown
Author

csp256 commented Apr 11, 2026

@akshayka Also, you should probably update CONTRIBUTING.md with the restriction that all public API changes need to be approved before PR. It currently just says:

Please reach out to the marimo team before starting work on a large contribution.

I would not have considered this a large contribution.

@manzt
Copy link
Copy Markdown
Collaborator

manzt commented Apr 16, 2026

Thanks, we have updated the contributing guide to expand upon contributions #9153.

@manzt manzt removed their request for review April 16, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bash-focus Area to focus on during release bug bash

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to always expand a cell's output via the cell decorator

3 participants