Skip to content

Commit ec8785f

Browse files
committed
Update after review
1 parent 8f1a752 commit ec8785f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/python/tutorial-working-with-python-in-visual-studio-step-05-installing-packages.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Python in Visual Studio tutorial step 5, install packages
33
titleSuffix: ""
4-
description: Step 5 of a core walkthrough of Python capabilities in Visual Studio, demonstrating Visual Studio's features for managing packages in a Python environment.
4+
description: Step 5 of a core walkthrough of Python capabilities in Visual Studio. Demonstrates Visual Studio features for managing packages in a Python environment.
55
ms.date: 02/09/2022
66
ms.topic: tutorial
77
author: rjmolyneaux
@@ -46,9 +46,9 @@ The Python developer community has produced thousands of useful packages that yo
4646
![Python Environments-2019](media/environments/environments-view-all-2019.png)
4747
:::moniker-end
4848

49-
2. Now, create a new project with **File** > **New** > **Project**, selecting the **Python Application** template.
49+
1. Now, create a new project with **File** > **New** > **Project**, selecting the **Python Application** template.
5050

51-
3. In the code file that appears, paste the following code, which creates a cosine wave like the previous tutorial steps, only this time plotted graphically. You can also use the project you previously created and replace the code.
51+
1. In the code file that appears, paste the following code, which creates a cosine wave like the previous tutorial steps, only this time plotted graphically. You can also use the project you previously created and replace the code.
5252

5353
```python
5454
from math import radians
@@ -63,7 +63,7 @@ The Python developer community has produced thousands of useful packages that yo
6363
main()
6464
```
6565

66-
4. In the editor window, hover over the `numpy` and `matplotlib` import statements. You'll notice that they aren't resolved. To resolve the import statements, install the packages to the default global environment.
66+
1. In the editor window, hover over the `numpy` and `matplotlib` import statements. You'll notice that they aren't resolved. To resolve the import statements, install the packages to the default global environment.
6767
:::moniker range=">=vs-2022"
6868
![Unresolved package import-2022](media/packages-unresolved-import-2022.png)
6969
:::moniker-end
@@ -72,11 +72,11 @@ The Python developer community has produced thousands of useful packages that yo
7272
![Unresolved package import](media/packages-unresolved-import.png)
7373
:::moniker-end
7474

75-
5. Looking at the editor window, you'll notice that if you hover over the `numpy` and `matplotlib` import statements that they aren't resolved. The reason is the packages haven't been installed to the default global environment.
75+
1. Looking at the editor window, you'll notice that if you hover over the `numpy` and `matplotlib` import statements that they aren't resolved. The reason is the packages haven't been installed to the default global environment.
7676

7777
For example, select **Open interactive window** and an **Interactive window** for that specific environment appears in Visual Studio.
7878

79-
6. The **Packages** tab in the Python Environments window lists all packages that are currently installed in the environment.
79+
1. The **Packages** tab in the Python Environments window lists all packages that are currently installed in the environment.
8080

8181
## Install packages using the Python Environments window
8282

@@ -86,17 +86,17 @@ The Python developer community has produced thousands of useful packages that yo
8686
[Install packages in an environment](media/environments/install-python-packages-2022.gif)
8787
:::moniker-end
8888

89-
2. Install `matplotlib` by entering its name into the search field and then selecting the **Run command: pip install matplotlib** option. Running the command will install `matplotlib`, and any packages it depends on (in this case that includes `numpy`).
89+
1. Install `matplotlib` by entering its name into the search field and then selecting the **Run command: pip install matplotlib** option. Running the command will install `matplotlib`, and any packages it depends on (in this case that includes `numpy`).
9090

91-
3. Choose the **Packages** tab.
91+
1. Choose the **Packages** tab.
9292

93-
4. Consent to elevation if prompted to do so.
93+
1. Consent to elevation if prompted to do so.
9494

95-
5. After the package is installed, it appears in the **Python Environments** window. The **X** to the right of the package uninstalls it.
95+
1. After the package is installed, it appears in the **Python Environments** window. The **X** to the right of the package uninstalls it.
9696

97-
6. Enter `matplotlib` into the search field to install `matplotlib`.
97+
1. Enter `matplotlib` into the search field to install `matplotlib`.
9898

99-
7. Select the **Run command: pip install matplotlib** option.
99+
1. Select the **Run command: pip install matplotlib** option.
100100
This option installs `matplotlib`, and any packages it depends on (in this case, that includes `numpy`).
101101

102102
:::moniker range="vs-2022"
@@ -106,9 +106,9 @@ The Python developer community has produced thousands of useful packages that yo
106106
![Installing matplotlib in the environment-2019 in Packages tab](media/environments/environments-add-matplotlib-2019.png)
107107
:::moniker-end
108108

109-
8. Consent to elevation if prompted to do so.
109+
1. Consent to elevation if prompted to do so.
110110

111-
9. After the package installs, it appears in the **Python Environments** window. The **X** to the right of the package uninstalls it.
111+
1. After the package installs, it appears in the **Python Environments** window. The **X** to the right of the package uninstalls it.
112112

113113
:::moniker range="vs-2022"
114114
![Installing matplotlib in the environment-2022](media/environments/environments-add-matplotlib2-2022.png)

0 commit comments

Comments
 (0)