ipython kernel install --user --name <myenv> --display-name "Python (myenv)"
启动 Jupyter Notebook 服务器
有关示例笔记本,请参阅 AzureML-Examples 存储库。 SDK 示例位于 /sdk/python 下。 例如,配置笔记本示例。
Visual Studio Code
若要使用 Visual Studio Code 进行开发:
安装 Visual Studio Code。
安装 Azure 机器学习 Visual Studio Code 扩展(预览版)。
安装 Visual Studio Code 扩展后,请使用它来执行以下操作:
管理 Azure 机器学习资源
连接到 Azure 机器学习计算实例
在本地调试联机终结点
部署已训练模型。
Azure 机器学习计算实例
Azure 机器学习计算实例是一个安全的基于云的 Azure 工作站,为数据科学家提供 Jupyter Notebook 服务器、JupyterLab 和一个完全托管的机器学习环境。
无需为计算实例安装或配置任何组件。
随时可从 Azure 机器学习工作区内部创建组件。 只需提供名称并指定 Azure VM 类型即可。 通过创建帮助入门的资源立即开始试用。
若要详细了解计算实例(包括如何安装包),请参阅创建 Azure 机器学习计算实例。
若要防止未使用的计算实例产生费用,请启用空闲关闭。
除了 Jupyter Notebook 服务器和 JupyterLab 以外,还可以在 Azure 机器学习工作室内的集成笔记本功能中使用计算实例。
还可以使用 Azure 机器学习 Visual Studio Code 扩展以通过 VS Code 连接到远程计算实例。
数据科学虚拟机
Data Science VM 是一种可用作开发环境的自定义虚拟机 (VM) 映像。 它专为数据科学工作而设计,其中预配置了工具和软件,例如:
TensorFlow、PyTorch、Scikit-learn、XGBoost 和 Azure 机器学习 SDK 等包
Spark Standalone 和 Drill 等常用数据科学工具
Azure CLI、AzCopy 和存储资源管理器等 Azure 工具
Visual Studio Code 和 PyCharm 等集成开发环境 (IDE)
Jupyter Notebook 服务器
有关更全面的工具列表,请参阅 Data Science VM 工具指南。
如果你计划将 Data Science VM 用作训练或推理作业的计算目标,则仅 Ubuntu 受支持。
若要使用 Data Science VM 作为开发环境,请执行以下操作:
使用下列方法之一创建一个 Data Science VM:
使用 Azure 门户创建一个 Ubuntu 或 Windows DSVM。
使用 ARM 模板创建 Data Science VM。
使用 Azure CLI
若要创建 Ubuntu Data Science VM,请使用以下命令:
# create a Ubuntu Data Science VM in your resource group
# note you need to be at least a contributor to the resource group in order to execute this command successfully
# If you need to create a new resource group use: "az group create --name YOUR-RESOURCE-GROUP-NAME --location YOUR-REGION (For example: westus2)"
az vm create --resource-group YOUR-RESOURCE-GROUP-NAME --name YOUR-VM-NAME --image microsoft-dsvm:linux-data-science-vm-ubuntu:linuxdsvmubuntu:latest --admin-username YOUR-USERNAME --admin-password YOUR-PASSWORD --generate-ssh-keys --authentication-type password
若要创建 Windows DSVM,请使用以下命令:
# create a Windows Server 2016 DSVM in your resource group
# note you need to be at least a contributor to the resource group in order to execute this command successfully
az vm create --resource-group YOUR-RESOURCE-GROUP-NAME --name YOUR-VM-NAME --image microsoft-dsvm:dsvm-windows:server-2016:latest --admin-username YOUR-USERNAME --admin-password YOUR-PASSWORD --authentication-type password
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:https://aka.ms/ContentUserFeedback。
提交和查看相关反馈