Import / Export Azure Databricks Notebooks

Caio Moreno
1 min readJun 10, 2019

--

Goal: Export and import Azure Databricks Notebooks using Databricks CLI.

Export a specific Azure Databricks Notebook in HTML Format.

databricks workspace export -f HTML /Test_folder/MY_NOTEBOOK C:\Users\caio.f.moreno\Desktop\DATABRICKS_NOTEBOOKS\MY_NOTEBOOK.HTML

Export an entire Azure Databricks folder (the files will be exported in .py, .scala, .r format)

databricks workspace export_dir /Test_folder/ C:\Users\caio.f.moreno\Desktop\DATABRICKS_NOTEBOOKS\

Import an entire Azure Databricks folder

databricks workspace import_dir C:\Users\caio.f.moreno\Desktop\DATABRICKS_NOTEBOOKS /Test_folder

--

--

Caio Moreno
Caio Moreno

Written by Caio Moreno

Solutions Architect @databricks | Professor | PhD | Ex-Microsoft | Ex-Avanade/Accenture | Ex-Pentaho/Hitachi | Ex-AOL | Ex-IT4biz CEO. (Opinions are my own)

No responses yet