Managing IPYNB cell timestamps in source control

emorgoch
New Contributor II

We're in the process of converting over our Databricks notebooks from .py file to .ipynb. We have disabled storing notebook output in source control at the workspace level.

However, what we're discovering is that every cell in our notebooks has 3 timestamp fields that are being included as part of the cell metadata in the notebook code: startTime, finishTime, and submitTime. These 3 values get updated any time a cell is executed during development.

This is presenting an issue with source control and code reviews as they are getting marked as updated lines that need to be reviewed even though the code of an actual cell ay not have been changed.

Is there any way that these fields can either be excluded or wiped as a part of the commit process? We're primarily using the web IDE, but could also apply to scenarios using VSCode as well.

emorgoch_0-1781635989625.png