Saving ipynb notebooks to git does not include output cells -- differs from export

GlennStrycker
Databricks Partner

When I save+commit+push my .ipynb file to my linked git repo, I noticed that only the cell inputs are saved, not the output.  This differs from the .ipynb file I get when I choose "File / Export / iPython Notebook".  Is there a way to save the cell outputs in my git commit as well?

GlennStrycker
Databricks Partner

I may have figured this out.  You need to allow output in the settings, which will add a .databricks file to your repo, then you'll need to edit the options on your notebook and/or edit the .databricks file to allow all outputs.

Screenshot 2024-03-12 at 3.42.15 PM.png

Screenshot 2024-03-12 at 3.48.03 PM.png

View solution in original post