Skip to content

feat: allow excluding code blocks when exporting to PDF#8362

Merged
Light2Dark merged 3 commits intomarimo-team:mainfrom
peter-gy:ptr/export-pdf-wo-input
Feb 19, 2026
Merged

feat: allow excluding code blocks when exporting to PDF#8362
Light2Dark merged 3 commits intomarimo-team:mainfrom
peter-gy:ptr/export-pdf-wo-input

Conversation

@peter-gy
Copy link
Contributor

📝 Summary

Enables PDF export without including input code blocks.

Closes #8319

🔍 Description of Changes

We collect --include-inputs/--no-include-inputs and pass it to the PDFExporter instance as option.

Result

left: notebook exported with --include-inputs (default behavior)
right: notebook exported with --no-include-inputs

WebPDF Export

Unknown

LaTeX Export

Unknown-1

@peter-gy peter-gy requested a review from akshayka as a code owner February 18, 2026 17:39
@peter-gy peter-gy added the enhancement New feature or request label Feb 18, 2026
@vercel
Copy link

vercel bot commented Feb 18, 2026

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

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Feb 18, 2026 5:40pm

Request Review

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 18, 2026
@peter-gy peter-gy requested review from Light2Dark and removed request for akshayka February 18, 2026 17:39
Copy link
Collaborator

@Light2Dark Light2Dark left a comment

Choose a reason for hiding this comment

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

nice!

@Light2Dark Light2Dark merged commit 4503fa8 into marimo-team:main Feb 19, 2026
51 of 64 checks passed
LiquidGunay pushed a commit to LiquidGunay/marimo that referenced this pull request Feb 21, 2026
…8362)

## 📝 Summary

Enables PDF export without including input code blocks.

Closes marimo-team#8319

## 🔍 Description of Changes

We collect `--include-inputs/--no-include-inputs` and pass it to the
`PDFExporter` instance as option.

## Result

left: notebook exported with `--include-inputs` (default behavior)
right: notebook exported with `--no-include-inputs`

**WebPDF Export**

<img width="1192" height="768" alt="Unknown"
src="https://github.com/user-attachments/assets/18bde50d-7f63-4a05-9e2d-98cbd153ba99"
/>

**LaTeX Export**

<img width="1192" height="768" alt="Unknown-1"
src="https://github.com/user-attachments/assets/5a1286ec-ad3e-44e0-9714-e90f15dfb58b"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to suppress inputs for marimo export pdf

2 participants