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: 

Databricks is not converting my .ipynb file to .py

megan
New Contributor

I can't find a way to have Databricks automatically convert my python notebooks to .py files when committing in a Git directory. This seems to counter the documentation I've read in that it should automatically convert. I've double checked that my settings disallow outputs from being committed. How can I fix this?

1 REPLY 1

Nivethan_Venkat
Contributor

Hi @megan,

The default format for notebooks in Databricks workspace now is .ipynb and not .py as mentioned in the image below. And you can navigate to settings -> Developer - > Default file format for notebooks and you can set the default format across workspace. The other approach is while you can creating the notebook, you can mention the file format at the end of notebook name, so that it could be avoided.

But again it depends on how you would like to fix this, across workspace as a common format. Or for a specific notebook when you are creating and committing back to Git repo / Azure Devops repo

Nivethan_Venkat_0-1741369056361.png

 

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