Export Synaps Notebook from my development branch

VT 1 Reputation point
2023-04-21T13:29:30.77+00:00

Hi, Is there an automated way to export Notebook from a specific Azure DevOps branch as ipynb file to the local machine?. Thanks for your help. Kind regards

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. HimanshuSinha-msft 19,486 Reputation points Microsoft Employee Moderator
    2023-04-24T21:31:52.8266667+00:00

    Hello @VT , Thanks for the question and using MS Q&A platform. You have two ask here , for pulling in the all the files in a particular brach , you can use the "fetch" feature in Azure devops . Read more about the same here . For the second ask, i am not sure if I understand the ask here as "ipynb" are the extension for Jupiter notebook. If the ask is to pull all the notebooks from a branch , the first suggestion should help . Thanks
    Himanshu

    Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues. 

    0 comments No comments

  2. VT 1 Reputation point
    2023-04-25T08:27:30.81+00:00

    Hi HimanshuSinha-msft, Thanks for your answers. Let me give more details on what I am trying to do. The Notebooks in our pipeline are stored as JSON files in Azure DevOps. As you know, comparing and visually seeing the difference between two Notebook versions isn't easy. My plan is

    1. Download the copy of the Notebook from the main & a copy from my development branch as ipynb (JupyterLab Notebook is not processing JSON Notebook correctly, its shows as a tree structure)
    2. Compare them using nbdiff-web to visualise the difference. I have managed to download the JSON file from the respective branch, but so far unable to convert it to the correct IPYNB format to open in JupyterLab. Thanks
    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.