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:ย 

What happens when you change from .ipynb to .py as default fileformat for notebooks

martheelise
New Contributor

Hi, 

I was struggling to do Pull Requests with the "new" default fileformat for Notebooks and wanted to change it back to source(.py). My questions are:

1) Does this affect the whole workspace for all users?

2) Does this change the format of old .ipynb files or does this need to be done manually for each notebook?

Manage notebook format | Databricks Documentation

1 REPLY 1

Walter_C
Databricks Employee
Databricks Employee

Changing the default notebook file format from .ipynb to .py in Databricks has several implications based on current implementations and user scenarios:

  1. User Experience: The .ipynb format captures more comprehensive data, including environment settings, visualizations, and widgets, enhancing user experience. In contrast, the .py format is more minimalistic, capturing only the source code

  2. Compatibility Issues: There are potential concerns for users who primarily rely on Git and source control, as notebooks committed in the .py format may lack critical metadata and features compared to .ipynb files. This can lead to unexpected behavior, especially in serverless environments that utilize notebook features not captured in the source format

  3. Impact on Existing Notebooks: Changing the default format will not retroactively affect existing notebooks. Only newly created notebooks will adopt the new default setting, ensuring that current workflows remain unaffected