Sign inGet started

Azure Repos

It is possible to import existing code or notebooks from an Azure Repos git repository to Deepnote and sync your code back to the repository. While there is no built-in integration for Azure Repos yet, setting up and using Azure Repos in Deepnote is already fairly straightforward.

How to set it up

Every project in Deepnote comes with a filesystem and a terminal. This makes it possible to clone and use any git repository the same way as you would do locally.

First, you need to get credentials for your repository. In the Azure Repo, navigate to the clone section:

azure-deepnote-01.png

Click on "Generate git credentials". This will generate a one-time access token that will be used for this repository by Deepnote.

azure-repos-01.png

Copy the repository URL and the access token.

In Deepnote, open a terminal and clone the repository the same way you would do it locally.

git clone  https://youraccount@dev.azure.com/youraccount/repository

When asked for a password, use the access token that you've just generated.

That's it! You can now use files in the repository, edit/open them from your notebook or from the File Explorer. If you wish to commit and push/pull the files to the remote, you can use terminal to issue corresponding git CLI commands.