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

How can I view an exported DBC notebook in my computer?

n-riesco
New Contributor

Is it possible to convert to or export as a .ipynb notebook?

5 REPLIES 5

kyle1
New Contributor II

Hi @n-riesco - Right now you can export the source code to your computer. Navigate to the file you want > click the down caret > export. This will be in .py, .scala, or .sql format.

Databricks also has GitHub integration for source code version control. To access this within a notebook click "Revision History" on the top right corner.

Also, Databricks is looking to add the ability to export to .ipynb format in coming releases.

rlgarris
Databricks Employee
Databricks Employee

Additionally, if you export a directory and/or file you can extract the JSON by using the unzip command.

mushroom
New Contributor II

Is there any way to convert a DBC archive to code (py or ipynb) offline? Someone sent me a dbc file and I'd like to take a look at the code. thanks

JRL
New Contributor II

VSCode offers an extension called DBC Language Syntax. You will need to configure a connection to a running Databricks cluster. Microsoft offers you the first 200 hours free on Azure. It may be enough to get you started. The "DBC Language Syntax" will open the file, but it will first look for the connection.

AlexV
New Contributor II


You can rename somefile.dbc to somefile.zip and open it with the Windows File Explorer, however the .python files cannot be opened in vscode or pycharm

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group