Skip to content

Commit 602af45

Browse files
authored
Merge pull request #209642 from sdgilley/sdg-v2
create v2 version of samples
2 parents 00e4baf + 32ca288 commit 602af45

File tree

8 files changed

+155
-36
lines changed

8 files changed

+155
-36
lines changed

articles/machine-learning/samples-notebooks.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Example Jupyter Notebooks
2+
title: Example Jupyter Notebooks (v2)
33
titleSuffix: Azure Machine Learning
4-
description: Learn how to find and use the Juypter Notebooks designed to help you explore the SDK and serve as models for your own machine learning projects.
4+
description: Learn how to find and use the Juypter Notebooks designed to help you explore the SDK (v2) and serve as models for your own machine learning projects.
55
services: machine-learning
66
ms.service: machine-learning
77
ms.subservice: core
@@ -10,26 +10,28 @@ ms.topic: sample
1010
author: sdgilley
1111
ms.author: sgilley
1212
ms.reviewer: sgilley
13-
ms.date: 12/27/2021
13+
ms.date: 08/30/2022
1414
ms.custom: seodec18
1515
#Customer intent: As a professional data scientist, I find and run example Jupyter Notebooks for Azure Machine Learning.
1616
---
1717

1818
# Explore Azure Machine Learning with Jupyter Notebooks
1919

20-
The [Azure Machine Learning Notebooks repository](https://github.com/azure/machinelearningnotebooks) includes the latest Azure Machine Learning Python SDK samples. These Jupyter notebooks are designed to help you explore the SDK and serve as models for your own machine learning projects. In this repository, you'll find tutorial notebooks in the **tutorials** folder and feature-specific notebooks in the **how-to-use-azureml** folder.
20+
[!INCLUDE [sdk v2](../../includes/machine-learning-sdk-v2.md)]
21+
> [!div class="op_single_selector" title1="Select the Azure Machine Learning version you are using:"]
22+
> * [v1](<v1/samples-notebooks-v1.md>)
23+
> * [v2 (preview)](samples-notebooks.md)
2124
22-
Also explore the community-driven repository of [AzureML-Examples](https://github.com/Azure/azureml-examples). This repository includes notebooks and [CLI (v2)](how-to-configure-cli.md) examples. For information on the various example types, see the [readme](https://github.com/Azure/azureml-examples#azure-machine-learning-examples).
25+
The [AzureML-Examples](https://github.com/Azure/azureml-examples) repository includes the latest (v2) Azure Machine Learning Python CLI and SDK samples. For information on the various example types, see the [readme](https://github.com/Azure/azureml-examples#azure-machine-learning-examples).
2326

24-
This article shows you how to access the repositories from the following environments:
27+
This article shows you how to access the repository from the following environments:
2528

26-
- [Azure Machine Learning compute instance](#notebookvm)
27-
- [Bring your own notebook server](#byo)
28-
- [Data Science Virtual Machine](#dsvm)
29+
- Azure Machine Learning compute instance
30+
- Your own compute resource
31+
- Data Science Virtual Machine
2932

3033

31-
<a name="notebookvm"></a>
32-
## Get samples on Azure Machine Learning compute instance
34+
## Option 1: Access on Azure Machine Learning compute instance (recommended)
3335

3436
The easiest way to get started with the samples is to complete the [Quickstart: Get started with Azure Machine Learning](quickstart-create-resources.md). Once completed, you'll have a dedicated notebook server pre-loaded with the SDK and the Azure Machine Learning Notebooks repository. No downloads or installation necessary.
3537

@@ -39,22 +41,20 @@ To add the community-driven repository, [use a compute instance terminal](how-to
3941
git clone https://github.com/Azure/azureml-examples.git --depth 1
4042
```
4143

42-
<a name="byo"></a>
43-
44-
## Get samples on your notebook server
44+
## Option 2: Access on your own notebook server
4545

4646
If you'd like to bring your own notebook server for local development, follow these steps on your computer.
4747

48-
[!INCLUDE [aml-your-server](../../includes/aml-your-server.md)]
48+
[!INCLUDE [aml-your-server](../../includes/aml-your-server-v2.md)]
49+
50+
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](https://aka.ms/sdk-v2-install).
4951

50-
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](/python/api/overview/azure/ml/install).
5152

52-
<a name="dsvm"></a>
53-
## Get samples on DSVM
53+
## Option 3: Access on a DSVM
5454

5555
The Data Science Virtual Machine (DSVM) is a customized VM image built specifically for doing data science. If you [create a DSVM](how-to-configure-environment.md#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.
5656

57-
[!INCLUDE [aml-dsvm-server](../../includes/aml-dsvm-server.md)]
57+
[!INCLUDE [aml-dsvm-server](../../includes/aml-dsvm-server-v2.md)]
5858

5959
## Next steps
6060

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: Example Jupyter Notebooks (v1)
3+
titleSuffix: Azure Machine Learning
4+
description: Learn how to find and use the Juypter Notebooks designed to help you explore the SDK (v1) and serve as models for your own machine learning projects.
5+
services: machine-learning
6+
ms.service: machine-learning
7+
ms.subservice: core
8+
ms.topic: sample
9+
10+
author: sdgilley
11+
ms.author: sgilley
12+
ms.reviewer: sgilley
13+
ms.date: 12/27/2021
14+
ms.custom: seodec18
15+
#Customer intent: As a professional data scientist, I find and run example Jupyter Notebooks for Azure Machine Learning.
16+
---
17+
18+
# Explore Azure Machine Learning with Jupyter Notebooks (v1)
19+
20+
[!INCLUDE [sdk v1](../../../includes/machine-learning-sdk-v1.md)]
21+
> [!div class="op_single_selector" title1="Select the Azure Machine Learning version you are using:"]
22+
> * [v1](<samples-notebooks-v1.md>)
23+
> * [v2 (preview)](../samples-notebooks.md)
24+
25+
The [Azure Machine Learning Notebooks repository](https://github.com/azure/machinelearningnotebooks) includes Azure Machine Learning Python SDK (v1) samples. These Jupyter notebooks are designed to help you explore the SDK and serve as models for your own machine learning projects. In this repository, you'll find tutorial notebooks in the **tutorials** folder and feature-specific notebooks in the **how-to-use-azureml** folder.
26+
27+
This article shows you how to access the repositories from the following environments:
28+
29+
- Azure Machine Learning compute instance
30+
- Bring your own notebook server
31+
- Data Science Virtual Machine
32+
33+
34+
## Option 1: Access on Azure Machine Learning compute instance (recommended)
35+
36+
The easiest way to get started with the samples is to complete the [Quickstart: Get started with Azure Machine Learning](../quickstart-create-resources.md). Once completed, you'll have a dedicated notebook server pre-loaded with the SDK and the Azure Machine Learning Notebooks repository. No downloads or installation necessary.
37+
38+
## Option 2: Access on your own notebook server
39+
40+
If you'd like to bring your own notebook server for local development, follow these steps on your computer.
41+
42+
[!INCLUDE [aml-your-server](../../../includes/aml-your-server.md)]
43+
44+
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](/python/api/overview/azure/ml/install).
45+
46+
## Option 3: Access on a DSVM
47+
48+
The Data Science Virtual Machine (DSVM) is a customized VM image built specifically for doing data science. If you [create a DSVM](../how-to-configure-environment.md#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.
49+
50+
[!INCLUDE [aml-dsvm-server](../../../includes/aml-dsvm-server.md)]
51+
52+
## Next steps
53+
54+
Explore the [MachineLearningNotebooks](https://github.com/Azure/MachineLearningNotebooks) repository to discover what Azure Machine Learning can do.
55+
56+
For more GitHub sample projects and examples, see these repos:
57+
+ [Microsoft/MLOps](https://github.com/Microsoft/MLOps)
58+
+ [Microsoft/MLOpsPython](https://github.com/microsoft/MLOpsPython)
59+

articles/machine-learning/v1/toc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
href: tutorial-1st-experiment-bring-data.md
5757
- name: "Build a training pipeline (Python)"
5858
href: "tutorial-pipeline-python-sdk.md"
59+
- name: Samples (v1)
60+
items:
61+
- name: Jupyter Notebooks
62+
displayName: example, examples, server, jupyter, azure notebooks, python, notebook, github
63+
href: samples-notebooks-v1.md
64+
- name: Examples repository
65+
displayName: example, examples, jupyter, python, notebook, github
66+
href: https://github.com/azure/machinelearningnotebooks
5967
- name: How-to guides (v1)
6068
items:
6169
- name: Install and set up the CLI (v1)

includes/aml-dsvm-server-v2.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: "include file"
3+
description: "include file"
4+
services: machine-learning
5+
author: sdgilley
6+
ms.service: machine-learning
7+
ms.author: sgilley
8+
manager: cgronlund
9+
ms.custom: "include file"
10+
ms.topic: "include"
11+
ms.date: 12/27/2021
12+
---
13+
14+
1. [Create an Azure Machine Learning workspace](../articles/machine-learning/how-to-manage-workspace.md).
15+
16+
1. Download a workspace configuration file:
17+
18+
* Sign in to [Azure Machine Learning studio](https://ml.azure.com)
19+
* Select your workspace settings in the upper right
20+
* Select **Download config file**
21+
22+
![Download config.json](./media/aml-dsvm-server/download-config.png)
23+
24+
1. From the directory where you added the configuration file, clone the [the AzureML-Examples repository](https://aka.ms/aml-notebooks).
25+
26+
```bash
27+
git clone https://github.com/Azure/azureml-examples.git --depth 1
28+
```
29+
30+
1. Start the notebook server from the directory, which now contains the clone and the config file.
31+
32+
```bash
33+
jupyter notebook
34+
```

includes/aml-dsvm-server.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,19 @@ ms.date: 12/27/2021
1515

1616
1. Add a workspace configuration file using either of these methods:
1717

18-
* In the [Azure portal](https://portal.azure.com), select **Download config.json** from the **Overview** section of your workspace.
18+
* In [Azure Machine Learning studio](https://ml.azure.com), select your workspace settings in the upper right, then select **Download config file**.
1919

2020
![Download config.json](./media/aml-dsvm-server/download-config.png)
2121

22-
* Create a new workspace using code in the [configuration.ipynb](https://github.com/Azure/MachineLearningNotebooks/blob/master/configuration.ipynb) notebook in your cloned directory.
22+
* Create a new workspace using code in the [configuration.ipynb](https://github.com/Azure/MachineLearningNotebooks/blob/master/configuration.ipynb) notebook.
2323

2424
1. From the directory where you added the configuration file, clone [the Machine Learning Notebooks repository](https://aka.ms/aml-notebooks).
2525

2626
```bash
2727
git clone https://github.com/Azure/MachineLearningNotebooks.git --depth 1
2828
```
2929

30-
1. From the same directory, clone [the AzureML-Examples repository](https://aka.ms/aml-notebooks).
31-
32-
```bash
33-
git clone https://github.com/Azure/azureml-examples.git --depth 1
34-
```
35-
36-
1. Start the notebook server from the directory, which now contains the two clones and the config file.
30+
1. Start the notebook server from the directory, which now contains the clone and the config file.
3731

3832
```bash
3933
jupyter notebook

includes/aml-your-server-v2.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "include file"
3+
description: "include file"
4+
services: machine-learning
5+
author: sdgilley
6+
ms.service: machine-learning
7+
ms.author: sgilley
8+
manager: scottpolly
9+
ms.custom: "include file"
10+
ms.topic: "include"
11+
ms.date: 08/30/2022
12+
---
13+
14+
1. Use the instructions at [Azure Machine Learning SDK](https://aka.ms/sdk-v2-install) to install the Azure Machine Learning SDK (v2) for Python
15+
16+
1. Create an [Azure Machine Learning workspace](../articles/machine-learning/how-to-manage-workspace.md).
17+
18+
1. Write a [configuration file](../articles/machine-learning/how-to-configure-environment.md#workspace) file (**aml_config/config.json**).
19+
20+
1. Clone [the AzureML-Examples repository](https://aka.ms/aml-notebooks).
21+
22+
```bash
23+
git clone https://github.com/Azure/azureml-examples.git --depth 1
24+
```
25+
26+
1. Start the notebook server from the directory containing your clone.
27+
28+
```bash
29+
jupyter notebook
30+
```

includes/aml-your-server.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.topic: "include"
1111
ms.date: 12/27/2021
1212
---
1313

14-
1. Use the instructions at [Azure Machine Learning SDK](/python/api/overview/azure/ml/install) to install the Azure Machine Learning SDK for Python
14+
1. Use the instructions at [Azure Machine Learning SDK](/python/api/overview/azure/ml/install) to install the Azure Machine Learning SDK (v1) for Python
1515

1616
1. Create an [Azure Machine Learning workspace](../articles/machine-learning/how-to-manage-workspace.md).
1717

@@ -23,13 +23,7 @@ ms.date: 12/27/2021
2323
git clone https://github.com/Azure/MachineLearningNotebooks.git --depth 1
2424
```
2525

26-
1. Clone [the AzureML-Examples repository](https://aka.ms/aml-notebooks).
27-
28-
```bash
29-
git clone https://github.com/Azure/azureml-examples.git --depth 1
30-
```
31-
32-
1. Start the notebook server from the directory containing both these clones.
26+
1. Start the notebook server from the directory containing your clone.
3327

3428
```bash
3529
jupyter notebook
-39.2 KB
Loading

0 commit comments

Comments
 (0)