Databricks is not converting my .ipynb file to .py
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 06:37 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 09:41 AM
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

