Skip to content

Commit 75ca383

Browse files
committed
updated Azure ML how to guide and README
1 parent fe07dfc commit 75ca383

File tree

8 files changed

+40
-8
lines changed

8 files changed

+40
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ After completing this prerequisite learning path, you should be able to:
8686
_Here are some Azure prerequisites you should make sure are completed before starting the modules. These will give you the necessary cloud computing skills to run the training modules such as launching a VM, cloning modules from GitHub, and more. If anything looks unfamiliar, follow the link to view documentation on that subject. After reading the documentation in the links below, complete the simple tasks described in the steps below as a knowledge check on what you just learned. Complete each step in order to learn the key skills you need to complete the learning modules in the next section!_
8787
- STEP 1: [Create a Resource Group](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/manage-resource-groups-portal)
8888
- STEP 2: [Navigate to Azure ML and Launch a Notebook](https://github.com/NIGMS/NIGMS-Sandbox/blob/main/docs/HowToCreateAzureMLNotebooks.md)
89-
- STEP 3: [Change your Notebook Kernel](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-run-jupyter-notebooks?view=azureml-api-2#add-new-kernels)
89+
- STEP 3: [Change/Add your Notebook Kernel](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-run-jupyter-notebooks?view=azureml-api-2#add-new-kernels)
9090
- STEP 4: [Launch Azure Batch](https://learn.microsoft.com/en-us/azure/batch/quick-create-portal) and submit a test job
9191
- STEP 5: [Set budget alerts](https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets?tabs=psbudget) for 25%, 50%, and 75%.
92-
- STEP 6: Clone this GitHub repository into an Azure ML notebook using [the command line](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) or the [user interface](https://learn.microsoft.com/en-us/azure/machine-learning/concept-train-model-git-integration?view=azureml-api-2).
92+
- STEP 6: Clone this GitHub repository into an Azure ML notebook using [the command line](https://github.com/NIGMS/NIGMS-Sandbox/blob/main/docs/HowToCreateAzureMLNotebooks.md). To learn more about GitHub cloning, check out the link [here](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository).
9393
- STEP 7: Review how to [open a GitHub issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue). If you have a question or a suggested enhancement, feel free to open an issue for this repository or for the module you are having trouble with. You can also email us at `CloudLab@nih.gov`.
9494

9595
After completing this prerequisite learning path, you should be able to:

docs/HowToCreateAzureMLNotebooks.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,54 @@ This guide will show you how to create a notebook in Azure Machine Learning Stud
2323
![](../images/images_for_creating_Azure_ML_notebooks/5.png)
2424

2525

26-
6. Finally, give a unique compute name, select your **virtual machine size**, and click **Review + Create**.
26+
6. Finally, give a unique compute name, select your **Compute Instance**, and click **Review + Create**.
2727

2828
![](../images/images_for_creating_Azure_ML_notebooks/6.png)
2929

30-
7. To clone an appropriate repository from GitHub.com, click **Terminal**.
30+
## Azure Notebooks UI vs. JupyterLab
31+
You have two options to interact with the notebook files: using the Azure Notebooks UI setting or the JupyterLab setting. The steps below will highlight how to clone a GitHub repo and run Jupyter files in each setting.
32+
33+
**Option 1: Azure Notebooks UI**
34+
1. To clone an appropriate repository from GitHub.com, click **Terminal**.
3135

3236
![](../images/images_for_creating_Azure_ML_notebooks/7.png)
3337

34-
8. Run `git clone ...`
38+
2. Run `git clone ...`, follow up with the URL of the GitHub repo you would like to clone (example: `git clone https://github.com/NIGMS/NIGMS-Sandbox.git`). Hit enter.
3539

3640
![](../images/images_for_creating_Azure_ML_notebooks/8.png)
3741

38-
9. This will download the repository directory to your notebook.
42+
3. This will download the repository directory to your notebook.
3943

4044
![](../images/images_for_creating_Azure_ML_notebooks/9.png)
4145

42-
10. Finally, choose an appropriate Jupyter kernel.
46+
4. Now you should see your files listed under the **Files** tab. Click the file to open them and verify that it is running by navigating to **Compute**. Ensure there is a green dot next to your instance name and that the status displays **"Running.".**
47+
48+
![](../images/images_for_creating_Azure_ML_notebooks/select_compute.png)
49+
50+
51+
5. Choose an appropriate Jupyter kernel (e.g., R, Python, etc.).
52+
53+
![](../images/images_for_creating_Azure_ML_notebooks/kernel.png)
54+
55+
6. Click the play button next to each cell to run the code or markdown cell.
56+
57+
58+
**Option 2: JupyterLab**
59+
60+
1. After you have created your instance, navigate to **Compute** in the left side menu.
61+
2. Select your instance name.
62+
3. Confirm that your instance is running; if it's not, click the **Start** button.
63+
4. Click **JupyterLab**.
64+
65+
![](../images/images_for_creating_Azure_ML_notebooks/start_open_jl.png)
66+
67+
5. Click **Terminal** in the launcher and run `git clone ...`, follow up with the URL of the GitHub repo you would like to clone (example: `git clone https://github.com/NIGMS/NIGMS-Sandbox.git`). Hit enter.
68+
69+
![](../images/images_for_creating_Azure_ML_notebooks/launcher.png)
70+
71+
6. Double-click to open files located in the left side bar.
72+
73+
7. Select your kernel (default is Python).
74+
![](../images/images_for_creating_Azure_ML_notebooks/jl_kernel.png)
4375

44-
![](../images/images_for_creating_Azure_ML_notebooks/10.png)
76+
8. Select a cell and click the play button at the top to run the code or markdown cell.
468 KB
Loading
452 KB
Loading
175 KB
Loading
183 KB
Loading
674 KB
Loading
299 KB
Loading

0 commit comments

Comments
 (0)