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: 

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

GlennStrycker
New Contributor III

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?

1 ACCEPTED SOLUTION

Accepted Solutions

GlennStrycker
New Contributor III

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

1 REPLY 1

GlennStrycker
New Contributor III

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