Skip to content

Commit 6646aaf

Browse files
authored
Merge pull request #89334 from greazer/greazer-extension-updates
Updates for Azure ML Extension docs
2 parents 041f610 + f780ded commit 6646aaf

22 files changed

+193
-141
lines changed

articles/machine-learning/service/concept-workspace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ There are multiple ways to create a workspace.
8484
* Use the [Azure portal](how-to-manage-workspace.md) for a point-and-click interface to walk you through each step.
8585
* Use the [Azure Machine Learning SDK for Python](https://docs.microsoft.com/python/api/overview/azure/ml/intro?view=azure-ml-py#workspace) to create a workspace on the fly from Python scripts or Jupiter notebooks
8686
* Use an [Azure Resource Manager template](how-to-create-workspace-template.md) or the [Azure Machine Learning CLI](reference-azure-machine-learning-cli.md) when you need to automate or customize the creation with corporate security standards.
87-
* If you work in Visual Studio Code, use the [VS Code extension](how-to-vscode-tools.md#get-started-with-azure-machine-learning).
87+
* If you work in Visual Studio Code, use the [VS Code extension](how-to-vscode-tools.md#get-started-with-azure-machine-learning-for-visual-studio-code).
8888

8989
## <a name="resources"></a> Associated resources
9090

articles/machine-learning/service/how-to-configure-environment.md

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This article also provides additional usage tips for the following tools:
3131

3232
* [Jupyter Notebooks](#jupyter): If you're already using the Jupyter Notebook, the SDK has some extras that you should install.
3333

34-
* [Visual Studio Code](#vscode): If you use Visual Studio Code, it has some useful extensions that you can install.
34+
* [Visual Studio Code](#vscode): If you use Visual Studio Code, the [Azure Machine Learning extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.vscode-ai) includes extensive language support for Python as well as features to make working with the Azure Machine Learning service much more convenient and productive.
3535

3636
## Prerequisites
3737

@@ -71,7 +71,7 @@ The notebook VM is:
7171

7272
+ **Customizable**. While a managed and secure VM offering, you retain full access to the hardware capabilities and customize it to your heart’s desire. For example, quickly create the latest NVidia V100 powered VM to perform step-by-step debugging of novel Neural Network architecture.
7373

74-
To stop incurring notebook VM charges, [stop the notebook VM](tutorial-1st-experiment-sdk-train.md#clean-up-resources).
74+
To stop incurring notebook VM charges, [stop the notebook VM](tutorial-1st-experiment-sdk-train.md#clean-up-resources).
7575

7676
## <a id="dsvm"></a>Data Science Virtual Machine
7777

@@ -85,7 +85,7 @@ The DSVM is a customized virtual machine (VM) image. It's designed for data scie
8585

8686
The Azure Machine Learning SDK works on either the Ubuntu or Windows version of the DSVM. But if you plan to use the DSVM as a compute target as well, only Ubuntu is supported.
8787

88-
To use the DSVM as a development environment, do the following:
88+
To use the DSVM as a development environment:
8989

9090
1. Create a DSVM in either of the following environments:
9191

@@ -146,9 +146,9 @@ For more information, see [Data Science Virtual Machines](https://azure.microsof
146146
147147
## <a id="local"></a>Local computer
148148
149-
When you're using a local computer (which might also be a remote virtual machine), create an Anaconda environment and install the SDK by doing the following:
149+
When you're using a local computer (which might also be a remote virtual machine), create an Anaconda environment and install the SDK. Here's an example:
150150
151-
1. Download and install [Anaconda](https://www.anaconda.com/distribution/#download-section) (Python 3.7 version) if you don't already have it.
151+
1. Download and install [Anaconda](https://www.anaconda.com/distribution/#download-section) (Python 3.7 version) if you don't already have it.
152152
153153
1. Open an Anaconda prompt and create an environment with the following commands:
154154
@@ -180,10 +180,10 @@ When you're using a local computer (which might also be a remote virtual machine
180180
181181
1. Use the following commands to install packages:
182182
183-
This command installs the base Azure Machine Learning SDK with notebook and automl extras. The `automl` extra is a large install, and can be removed from the brackets if you don't intend to run automated machine learning experiments. The `automl` extra also includes the Azure Machine Learning Data Prep SDK by default as a dependency.
183+
This command installs the base Azure Machine Learning SDK with notebook and `automl` extras. The `automl` extra is a large install, and can be removed from the brackets if you don't intend to run automated machine learning experiments. The `automl` extra also includes the Azure Machine Learning Data Prep SDK by default as a dependency.
184184
185185
```shell
186-
pip install azureml-sdk[notebooks,automl]
186+
pip install azureml-sdk[notebooks, automl]
187187
```
188188
189189
> [!NOTE]
@@ -216,14 +216,16 @@ When you're using a local computer (which might also be a remote virtual machine
216216
217217
Jupyter Notebooks are part of the [Jupyter Project](https://jupyter.org/). They provide an interactive coding experience where you create documents that mix live code with narrative text and graphics. Jupyter Notebooks are also a great way to share your results with others, because you can save the output of your code sections in the document. You can install Jupyter Notebooks on a variety of platforms.
218218
219-
The procedure in the [Local computer](#local) section installs necessary components for running Jupyter Notebooks in an Anaconda environment. To enable these components in your Jupyter Notebook environment, do the following:
219+
The procedure in the [Local computer](#local) section installs necessary components for running Jupyter Notebooks in an Anaconda environment.
220+
221+
To enable these components in your Jupyter Notebook environment:
220222
221223
1. Open an Anaconda prompt and activate your environment.
222224
223225
```shell
224226
conda activate myenv
225227
```
226-
228+
227229
1. Clone [the GitHub repository](https://aka.ms/aml-notebooks) for a set of sample notebooks.
228230
229231
```CLI
@@ -249,34 +251,35 @@ The procedure in the [Local computer](#local) section installs necessary compone
249251
import sys
250252
sys.path
251253
```
252-
254+
253255
1. To configure the Jupyter Notebook to use your Azure Machine Learning workspace, go to the [Create a workspace configuration file](#workspace) section.
254256
255257
256258
### <a id="vscode"></a>Visual Studio Code
257259
258-
Visual Studio Code is a cross platform code editor. It relies on a local Python 3 and Conda installation for Python support, but it provides additional tools for working with AI. It also provides support for selecting the Conda environment from within the code editor.
260+
Visual Studio Code is a very popular cross platform code editor that supports an extensive set of programming languages and tools through extensions available in the [Visual Studio marketplace](https://marketplace.visualstudio.com/vscode). The [Azure Machine Learning extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.vscode-ai) installs the [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python) for coding in all types of Python environments (virtual, Anaconda, etc.). In addition, it provides convenience features for working with Azure Machine Learning resources and running Azure Machine Learning experiments all without leaving Visual Studio Code.
261+
262+
To use Visual Studio Code for development:
263+
264+
1. Install the Azure Machine Learning extension for Visual Studio Code, see [Azure Machine Learning](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.vscode-ai).
259265
260-
To use Visual Studio Code for development, do the following:
266+
For more information, see [Use Azure Machine Learning for Visual Studio Code](how-to-vscode-tools.md).
261267
262-
1. To learn how to use Visual Studio Code for Python development, see [Get started with Python in VSCode](https://code.visualstudio.com/docs/python/python-tutorial).
268+
1. Learn how to use Visual Studio Code for any type of Python development, see [Get started with Python in VSCode](https://code.visualstudio.com/docs/python/python-tutorial).
263269
264-
1. To select the Conda environment, open VS Code, and then select Ctrl+Shift+P (Linux and Windows) or Command+Shift+P (Mac).
265-
The __Command Pallet__ opens.
270+
- To select the SDK Python environment containing the SDK, open VS Code, and then select Ctrl+Shift+P (Linux and Windows) or Command+Shift+P (Mac).
271+
- The __Command Palette__ opens.
266272
267-
1. Enter __Python: Select Interpreter__, and then select the Conda environment.
273+
- Enter __Python: Select Interpreter__, and then select the appropriate environment
268274
269-
1. To validate that you can use the SDK, create and then run a new Python file (.py) that contains the following code:
275+
1. To validate that you can use the SDK, create a new Python file (.py) that contains the following code:
270276
271277
```python
278+
#%%
272279
import azureml.core
273280
azureml.core.VERSION
274281
```
275-
276-
1. To install the Azure Machine Learning extension for Visual Studio Code, see [Tools for AI](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.vscode-ai).
277-
278-
For more information, see [Use Azure Machine Learning for Visual Studio Code](how-to-vscode-tools.md).
279-
282+
Run this code by clicking the "Run cell" CodeLens or simply press shift-enter.
280283
<a name="aml-databricks"></a>
281284
282285
## Azure Databricks
@@ -297,7 +300,7 @@ Use these settings:
297300
| Setting |Applies to| Value |
298301
|----|---|---|
299302
| Cluster name |always| yourclustername |
300-
| Databricks Runtime |always| Any non ML runtime (non ML 4.x, 5.x) |
303+
| Databricks Runtime |always| Any non-ML runtime (non-ML 4.x, 5.x) |
301304
| Python version |always| 3 |
302305
| Workers |always| 2 or higher |
303306
| Worker node VM types <br>(determines max # of concurrent iterations) |Automated ML<br>only| Memory optimized VM preferred |
@@ -321,7 +324,7 @@ Once the cluster is running, [create a library](https://docs.databricks.com/user
321324
* Do not select **Attach automatically to all clusters**.
322325
* Select **Attach** next to your cluster name.
323326
324-
1. Monitor for errors until status changes to **Attached**, which may take several minutes. If this step fails, check the following:
327+
1. Monitor for errors until status changes to **Attached**, which may take several minutes. If this step fails:
325328
326329
Try restarting your cluster by:
327330
1. In the left pane, select **Clusters**.
@@ -397,4 +400,4 @@ You can create the configuration file in three ways:
397400
## Next steps
398401

399402
- [Train a model](tutorial-train-models-with-aml.md) on Azure Machine Learning with the MNIST dataset
400-
- View the [Azure Machine Learning SDK for Python](https://docs.microsoft.com/python/api/overview/azure/ml/intro?view=azure-ml-py) reference
403+
- View the [Azure Machine Learning SDK for Python](https://docs.microsoft.com/python/api/overview/azure/ml/intro?view=azure-ml-py) reference

articles/machine-learning/service/how-to-manage-workspace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.custom: seodec18
1717

1818
# Create and manage Azure Machine Learning workspaces in the Azure portal
1919

20-
In this article, you'll create, view, and delete [**Azure Machine Learning workspaces**](concept-workspace.md) in the Azure portal for [Azure Machine Learning](overview-what-is-azure-ml.md). The portal is the easiest way to get started with workspaces but as your needs change or requirements for automation increase you can also create and delete workspaces [using the CLI](reference-azure-machine-learning-cli.md), [with Python code](https://docs.microsoft.com/python/api/overview/azure/ml/intro?view=azure-ml-py) or [via the VS Code extension](how-to-vscode-tools.md#get-started-with-azure-machine-learning).
20+
In this article, you'll create, view, and delete [**Azure Machine Learning workspaces**](concept-workspace.md) in the Azure portal for [Azure Machine Learning](overview-what-is-azure-ml.md). The portal is the easiest way to get started with workspaces but as your needs change or requirements for automation increase you can also create and delete workspaces [using the CLI](reference-azure-machine-learning-cli.md), [with Python code](https://docs.microsoft.com/python/api/overview/azure/ml/intro?view=azure-ml-py) or [via the VS Code extension](how-to-vscode-tools.md#get-started-with-azure-machine-learning-for-visual-studio-code).
2121

2222
## Create a workspace
2323

0 commit comments

Comments
 (0)