feat: allow excluding code blocks when exporting to PDF#8362
Merged
Light2Dark merged 3 commits intomarimo-team:mainfrom Feb 19, 2026
Merged
feat: allow excluding code blocks when exporting to PDF#8362Light2Dark merged 3 commits intomarimo-team:mainfrom
Light2Dark merged 3 commits intomarimo-team:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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" />
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
Enables PDF export without including input code blocks.
Closes #8319
🔍 Description of Changes
We collect
--include-inputs/--no-include-inputsand pass it to thePDFExporterinstance as option.Result
left: notebook exported with
--include-inputs(default behavior)right: notebook exported with
--no-include-inputsWebPDF Export
LaTeX Export