Explore Azure Machine Learning with Jupyter notebooks

The example Azure Machine Learning Notebooks repository includes the latest Azure Machine Learning Python SDK samples. These Juypter notebooks are designed to help you explore the SDK and serve as models for your own machine learning projects.

This article shows you how to access the repository from the following environments:

Note

Once you've cloned the repository, you'll find tutorial notebooks in the tutorials folder and feature-specific notebooks in the how-to-use-azureml folder.

Get samples on Azure Machine Learning Notebook VM

The easiest way to get started with the samples is to complete the Tutorial: Setup environment and workspace. Once completed, you'll have a dedicated notebook server pre-loaded with the SDK and the sample repository. No downloads or installation necessary.

Get samples on your notebook server

If you'd like to bring your own notebook server for local development, follow these steps:

  1. Use the instructions at Azure Machine Learning SDK to install the Azure Machine Learning SDK for Python

  2. Create an Azure Machine Learning workspace.

  3. Write a configuration file file (aml_config/config.json).

  4. Clone the GitHub repository.

    git clone https://github.com/Azure/MachineLearningNotebooks.git
    
  5. Start the notebook server from your cloned directory.

    jupyter notebook
    

These instructions install the base SDK packages necessary for the quickstart and tutorial notebooks. Other sample notebooks may require you to install extra components. For more information, see Install the Azure Machine Learning SDK for Python.

Get samples on DSVM

The Data Science Virtual Machine (DSVM) is a customized VM image built specifically for doing data science. If you create a DSVM, the SDK and notebook server are installed and configured for you. However, you'll still need to create a workspace and clone the sample repository.

  1. Create an Azure Machine Learning workspace.

  2. Clone the GitHub repository.

    git clone https://github.com/Azure/MachineLearningNotebooks.git
    
  3. Add a workspace configuration file to the cloned directory using either of these methods:

    • In the Azure portal, select Download config.json from the Overview section of your workspace.

    Download config.json

    • Create a new workspace using code in the configuration.ipynb notebook in your cloned directory.
  4. Start the notebook server from your cloned directory.

    jupyter notebook
    

Next steps

Explore the sample notebooks to discover what Azure Machine Learning can do, or try these tutorials: