cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can you default to `execution-count: none` when stripping notebook outputs?

spd_dat
New Contributor II

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.)

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now