View Databricks notebooks outside Databricks

Viewed 452

I have and exported dbc file with all my notebooks. Is it possible to open/convert them to be opened in jupyter notebook or some other IDE?

1 Answers

Databricks natively stores it’s notebook files by default as DBC files, a closed, binary format. A .dbc file has a nice benefit of being self-contained. One dbc file can consist of an entire folder of notebooks and supporting files. But other than that, dbc files are frankly obnoxious.

However, there is a workaround using Databricks -CLI
Install the Databricks CLI on your local computer as per Databricks CLI

pip install databricks-cli
databricks configure --token

and run the following to import the .py notebooks into your local folder

mkdir export_notebooks
cd export_notebooks
databricks workspace export_dir /Shared ./
Related