Repository navigation
Conversation
YAfe27
marked this pull request as ready for review
December 3, 2026 08:27
akshayka
requested changes
Dec 3, 2026
Comment on lines
+77
to
+93
|
|
||
| **Choose what to track in Git.** Commit your notebook's `.py` file and any | ||
| files it needs to run. You can ignore the entire `__marimo__/` directory if | ||
| you don't need to share anything in it. Ignoring it doesn't stop marimo from | ||
| reading or writing files there locally. | ||
|
|
||
| To share selected files, replace `__marimo__/` in your `.gitignore` with the | ||
| rule below. It ignores [persistent caches](../api/caching.md) at any depth. | ||
|
|
||
| **/__marimo__/cache/ | ||
|
|
||
| Add `**/__marimo__/session/` if you don't want to share saved outputs. To show | ||
| outputs in [static molab previews of notebooks hosted on GitHub](publishing/github.md), | ||
| leave that rule out and commit the [session JSON file](exporting/sessions.md). | ||
| Review the outputs for sensitive data before committing. You can also commit | ||
| assets such as [thumbnails](publishing/thumbnails.md) and any HTML or | ||
| `.ipynb` exports you want to share. |
Contributor
There was a problem hiding this comment.
The best practices guide contains best practices for writing marimo notebooks, and this section isn't about writing a notebook.
Can you instead add an entry to the FAQ?
Additionally, this sentence is tautological: You can ignore the entire __marimo__/ directory if
you don't need to share anything in it.
This branch has not been deployed
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.
This pull request was authored by a coding agent.
📝 Summary
Closes #7708.
The caching docs tell readers how to ignore caches, but leave open whether they can ignore all of
__marimo__/. Add a short entry to Best Practices explaining when to ignore the whole directory and when to track session snapshots, thumbnails, or exports.The coding agent checked the three ignore configurations with
git check-ignorefor notebooks at the repository root and in a nested directory. The full MkDocs build, Markdown lint, and spelling checks passed. The agent verified all four links in the rendered entry.👋 First time contributor introduction
I'm Yeabsera, a CS senior at Stanford. I'm contributing to marimo through CS146S and previously worked on the logging FAQ in #11901.
📋 Pre-Review Checklist
✅ Merge Checklist