Can you default to `execution-count: none` when stripping notebook outputs?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 04:29 AM
When committing to a git folder, IPYNB outputs are usually stripped, unless allowed by an admin setting and toggled by .databricks/commit_outputs. This sets the
{"execution-count": 0, ... }
within the IPYNB metadata. Is there a way to set it instead to
"execution-count": null
? This would align the behavior with nbstripout. Currently, if you use nbstripout as part of pre-commit.ci , the hook is triggered every time a Databricks notebook is committed. (And I'd guess there's no particular advantage of setting it to 0?)
(Admittedly, more of a feature request.)
strip output from Jupyter and IPython notebooks. Contribute to kynan/nbstripout development by creating an account on GitHub.
0 REPLIES 0

