Skip to content

Commit ed544b3

Browse files
authored
Apply suggestions from code review
1 parent 0c26442 commit ed544b3

8 files changed

+0
-20
lines changed

docs/python/managing-python-projects-in-visual-studio.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ A new project is always associated with the default global Python environment. T
4949

5050
![Add Environment command on the Python toolbar](media/environments/environments-toolbar-2019.png)
5151

52-
5352
To change the active environment, right-click the desired environment in **Solution Explorer** and select **Activate Environment** as shown below. For more information, see [Select an environment for a project](selecting-a-python-environment-for-a-project.md).
5453

5554
![Activating an environment for a Python project](media/projects-activate-environment.png)
@@ -77,7 +76,6 @@ The following table summarizes the templates available in Visual Studio 2019 (no
7776
| **Background Application (IoT)** | Supports deploying Python projects to run as background services on devices. Visit the [Windows IoT Dev Center](https://dev.windows.com/en-us/iot) for more information. |
7877
| **Python Extension Module** | This template appears under Visual C++ if you've installed the **Python native development tools** with the Python workload in Visual Studio 2017 or later (see [Installation](installing-python-support-in-visual-studio.md)). It provides the core structure for a C++ extension DLL, similar to what's described on [Create a C++ extension for Python](working-with-c-cpp-python-in-visual-studio.md). |
7978

80-
8179
> [!Note]
8280
> Because Python is an interpreted language, Python projects in Visual Studio don't produce a stand-alone executable like other compiled language projects (C#, for example). For more information, see [questions and answers](overview-of-python-tools-for-visual-studio.md#questions-and-answers).
8381

docs/python/managing-required-packages-with-requirements-txt.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Technically, any filename may be used to track requirements (by using `-r <full
2525

2626
![Install from requirements.txt-2019](media/environments/environments-requirements-txt-install.png)
2727

28-
2928
- If you want to install the dependencies in a virtual environment, create and activate that environment first, then use the **Install from requirements.txt** command. For more information on creating a virtual environment, see [Use virtual environments](selecting-a-python-environment-for-a-project.md#use-virtual-environments).
3029

3130
- If you already have all the necessary packages installed in an environment, you can right-click that environment in **Solution Explorer** and select **Generate requirements.txt** to create the necessary file. If the file already exists, a prompt appears for how to update it:

docs/python/overview-of-python-tools-for-visual-studio.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ To get started:
3232

3333
- Go through one or more of the Quickstarts to create a project. If you're unsure, start with [Quickstart: Open and run Python code in a folder](quickstart-05-python-visual-studio-open-folder.md) or [Create a web app with Flask](../ide/quickstart-python.md?toc=/visualstudio/python/toc.json&bc=/visualstudio/python/_breadcrumb/toc.json).
3434

35-
3635
- Follow the [Work with Python in Visual Studio](tutorial-working-with-python-in-visual-studio-step-01-create-project.md) tutorial for a full end-to-end experience.
3736

3837
## Support for multiple interpreters
@@ -97,7 +96,6 @@ For more information:
9796
> [!Note]
9897
> Visual Studio 2019 supports opening a folder containing Python code and running that code without creating Visual Studio project and solution files. For more information, see [Quickstart: Open and run Python code in a folder](quickstart-05-python-visual-studio-open-folder.md). There are, however, benefits to using a project file, as explained in this section.
9998
100-
10199
::: moniker range="vs-2022"
102100
> [!Note]
103101
> Visual Studio 2022 supports opening a folder containing Python code and running that code without creating Visual Studio project and solution files. For more information, see [Quickstart: Open and run Python code in a folder](quickstart-05-python-visual-studio-open-folder.md). There are, however, benefits to using a project file, as explained in this section.

docs/python/python-environments-window-tab-reference.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ If you expand the **Python Environments** window wide enough, these options are
2525

2626
![Python Environments window expanded view](media/environments/environments-expanded-view-2019.png)
2727

28-
2928
## Overview tab
3029

3130
Provides basic information and commands for the environment:
3231

3332
![Python Environments overview tab](media/environments/environments-overview-tab-2019.png)
3433

35-
3634
| Command | Description |
3735
| --- | --- |
3836
| **Make this environment the default for new projects** | Sets the active environment, which may cause Visual Studio (2017 version 15.5 and earlier) to briefly become non-responsive while it loads the IntelliSense database. Environments with many packages may be non-responsive for longer. |
@@ -59,7 +57,6 @@ If available, the **Configure** tab contains details as described in the table b
5957

6058
![Python Environments configure tab](media/environments/environments-configure-tab-2019.png)
6159

62-
6360
| Field | Description |
6461
| --- | --- |
6562
| **Description** | The name to give the environment. |
@@ -85,17 +82,14 @@ Entering a search term filters the list of installed packages as well as package
8582

8683
![Python environments packages tab with a search on "num"](media/environments/environments-pip-tab-2019.png)
8784

88-
8985
As you can see in the image above, the search results show a number of packages that match the search term; the first entry in the list, however, is a command to run **pip install \<name>** directly. If you're on the **Packages (Conda)** tab, you instead see **conda install \<name>**:
9086

9187
![Conda packages tab showing a conda install command](media/environments/environments-conda-tab-install-2019.png)
9288

93-
9489
In both cases, you can customize the install by adding arguments in the search box after the name of the package. When you include arguments, the search results shows **pip install** or **conda install** followed by the contents of the search box:
9590

9691
![Using arguments on pip and conda install commands](media/environments/environments-pip-tab-arguments-2019.png)
9792

98-
9993
Installing a package creates subfolders within the environment's *Lib* folder on the file system. For example, if you have Python 3.6 installed in *c:\Python36*, packages are installed in *c:\Python36\Lib*; if you have Anaconda3 installed in *c:\Program Files\Anaconda3* then packages are installed in *c:\Program Files\Anaconda3\Lib*. For conda environments, packages are installed in that environment's folder.
10094

10195
### Grant administrator privileges for package install

docs/python/python-support-options-and-settings-in-visual-studio.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ To view Python options, use the **Tools** > **Options** menu command, make sure
2727

2828
![Python options dialog, General tab](media/options-general-2019.png)
2929

30-
3130
There are also additional Python-specific options on the **Text Editor** > **Python** > **Advanced** tab, and on the **Environment** > **Fonts and Colors** tab within the **Text Editor** group.
3231

3332
> [!Note]
@@ -54,7 +53,6 @@ There are also additional Python-specific options on the **Text Editor** > **Pyt
5453

5554
![Python options dialog, General tab](media/options-general-2019.png)
5655

57-
5856
## Conda options
5957

6058
(**Tools** > **Options** > **Python** > **Conda** tab.)
@@ -82,7 +80,6 @@ There are also additional Python-specific options on the **Text Editor** > **Pyt
8280

8381
![Python options dialog, Debugging tab](media/options-debugging-2019.png)
8482

85-
8683
## Diagnostics options
8784

8885
(**Tools** > **Options** > **Python** > **Diagnostics** tab.)

docs/python/search-paths.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ To add a search path, go to **Solution Explorer**, expand your project node, rig
3030

3131
![Add Folder to Search Path command on Search Paths in Solution Explorer](media/search-paths-command-2019.png)
3232

33-
3433
This command displays a browser in which you then select the folder to include.
3534

3635
If your `PYTHONPATH` environment variable already includes the folder(s) you want, use the **Add PYTHONPATH to Search Paths** as a convenient shortcut.

docs/python/selecting-a-python-environment-for-a-project.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ If you already added an environment other than the global default to a project,
3232

3333
![Activating and removing a project environment](media/environments/environments-project-add-remove-2019.png)
3434

35-
3635
## Use virtual environments
3736

3837
A virtual environment is a unique combination of a specific Python interpreter and a specific set of libraries that is different from other global and conda environments. A virtual environment is specific to a project and is maintained in a project folder. That folder contains the environment's installed libraries along with a *pyvenv.cfg* file that specifies the path to the environment's *base interpreter* elsewhere on the file system. (That is, a virtual environment doesn't contain a copy of the interpreter, only a link to it.)
@@ -80,7 +79,6 @@ If you've already created a virtual environment elsewhere, you can activate it f
8079

8180
1. After a few moments, the virtual environment appears under the **Python Environments** node in **Solution Explorer**. The virtual environment is not activated by default, so right-click it and select **Activate Environment**.
8281

83-
8482
### Remove a virtual environment
8583

8684
1. In **Solution Explorer**, right-click the virtual environment and select **Remove**.
@@ -95,7 +93,6 @@ In Solution Explorer, expand any specific environment's node to quickly view the
9593

9694
To install new packages, right-click the environment and select **Manage Python Packages** (or use the package button on the Python toolbar) to switch to the appropriate **Packages** tab in the **Python Environments** window. Once in the **Packages** tab, enter a search term (usually the package name) and Visual Studio displays matching packages.
9795

98-
9996
Within Visual Studio, packages (and dependencies) for most environments are downloaded from the [Python Package Index (PyPI)](https://pypi.org), where you can also search for available packages. Visual Studio's status bar and output window show information about the install. To uninstall a package, right-click it and select **Remove**.
10097

10198
The conda package manager generally uses `https://repo.continuum.io/pkgs/` as the default channel, but other channels are available. For more information, see [Manage Channels](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html) (docs.conda.io).

docs/python/visual-studio-ide.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ This image shows Visual Studio with an open Python project and several key tool
2929

3030
- You can also open and run Python code in a folder without creating Visual Studio project and solution files. For more information, see [Quickstart: Open and run Python code in a folder](quickstart-05-python-visual-studio-open-folder.md).
3131

32-
3332
- The [editor window](../ide/writing-code-in-the-code-and-text-editor.md) (center), where you'll likely spend a majority of your time, displays file contents. This is where you [edit Python code](editing-python-code-in-visual-studio.md), navigate within your code structure, and set breakpoints during debugging sessions. With Python, you can also select code and press Ctrl+Enter to run that code in an [interactive REPL window](python-interactive-repl-in-visual-studio.md).
3433

3534
- The [Output window](../ide/reference/output-window.md) (bottom center) is where Visual Studio sends notifications such as debugging and error messages, warnings, publishing status messages, and more. Each message source has its own tab.
@@ -89,7 +88,6 @@ Some of the popular features in Visual Studio that help you to be more productiv
8988

9089
Starting in Visual Studio 2019, you can open a folder containing Python code to enjoy features like IntelliSense and debugging without having to create a Visual Studio project for the code.
9190

92-
9391
- [Collaborate using Visual Studio](/visualstudio/liveshare/)
9492

9593
Visual Studio Live Share enables you to collaboratively edit and debug with others in real time, regardless of what programming language you're using or app types you're building.

0 commit comments

Comments
 (0)