Migration of azure databricks notebooks to azure ML workspace

Keerthana J 71 Reputation points
2024-02-19T05:04:46.0866667+00:00

I have plenty of notebooks in my ADB workspace , how can I move them to my AML workspace and start using them

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
    2024-02-19T09:16:59.2466667+00:00

    It is either you export your notebooks from Azure Databricks. You can do this individually or in bulk:

    • Individually: Go to the Azure Databricks workspace, navigate to the notebook you want to export, click on the 'File' menu, and select 'Export' > 'Source File'. This will download the notebook in .py or .dbc format, depending on your selection.
    • In Bulk: For exporting multiple notebooks at once, you might need to use the Databricks CLI or workspace API to export them in a .dbc archive or individually in .py files.

    Or you can convert them, since Azure Machine Learning notebooks are Jupyter notebooks, which use the .ipynb format. If your exported notebooks are not in .ipynb format, you'll need to convert them:

    • From .py to .ipynb: You can use tools like jupytext to convert .py files to .ipynb. Jupytext can be installed via pip and used to convert files through the command line.
    • From .dbc to .ipynb: If you exported a .dbc archive, you may first need to extract the archive into individual notebooks (which may still require conversion to .ipynb), depending on the format they are in after extraction.
    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.