Skip to content

Commit 222c032

Browse files
author
Kartik Raj
authored
Merge pull request #6173 from microsoft/kartik/environments
Update environments section under Python language
2 parents 66b2548 + 687e2c8 commit 222c032

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

docs/languages/images/python/no-interpreter-selected-statusbar.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/languages/images/python/selected-interpreter-status-bar.png

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/languages/python.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,22 @@ Additionally, the [Django](/docs/python/tutorial-django.md) and [Flask](/docs/py
8686

8787
The Python extension automatically detects Python interpreters that are installed in standard locations. It also detects conda environments as well as virtual environments in the workspace folder. See [Configuring Python environments](/docs/python/environments.md).
8888

89-
The current environment is shown on the left side of the VS Code Status Bar:
89+
The current environment is shown on the right side of the VS Code Status Bar:
9090

91-
![Selected Python interpreter in the Status Bar](images/python/selected-interpreter-status-bar.png)
91+
![Status Bar showing a selected interpreter](images/environments/selected-interpreter-status-bar.png)
9292

9393
The Status Bar also indicates if no interpreter is selected:
9494

95-
![Status bar showing no selected Python interpreter](images/python/no-interpreter-selected-statusbar.png)
95+
![Status bar showing no selected Python interpreter](images/environments/no-interpreter-selected-statusbar.png)
9696

97-
The selected environment is used for IntelliSense, auto-completions, linting, formatting, and any other language-related feature other than debugging. It is also activated when you run Python in a terminal.
97+
The selected environment is used for IntelliSense, auto-completions, linting, formatting, and any other language-related feature. It is also activated when you run or debug Python in a terminal.
9898

9999
To change the current interpreter, which includes switching to conda or virtual environments, select the interpreter name on the Status Bar or use the **Python: Select Interpreter** command.
100100

101101
![Python: Select Interpreter command](images/python/select-interpreters-command.png)
102102

103103
VS Code prompts you with a list of detected environments as well as any you've added manually to your user settings (see [Configuring Python environments](/docs/python/environments.md)).
104104

105-
### Installing packages
106-
107-
Packages are installed using the **Terminal** panel and commands like `pip install <package_name>` (Windows) and `pip3 install <package_name>` (macOS/Linux). VS Code installs that package into your project along with its dependencies. Examples are given in the [Python tutorial](/docs/python/python-tutorial.md#install-and-use-packages) as well as the [Django](/docs/python/tutorial-django.md) and [Flask](/docs/python/tutorial-flask.md) tutorials.
108-
109105
## Jupyter notebooks
110106

111107
To enable Python support for [Jupyter notebook](https://jupyter.org/) files (`.ipynb`) in VS Code, you can install the [Jupyter extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter). The Python and Jupyter extensions work together to give you a great Notebook experience in VS Code, providing you the ability to directly view and modify code cells with IntelliSense support, as well as run and debug them.

docs/python/environments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ The selected interpreter version will show on the right side of the Status Bar.
176176

177177
The Status Bar also reflects when no interpreter is selected.
178178

179-
![No interpreter selected](images/environments/no-interpreter-selected-statusbar.png)
179+
![Status bar showing no selected Python interpreter](images/environments/no-interpreter-selected-statusbar.png)
180180

181181
In either case, clicking this area of the Status Bar is a convenient shortcut for the **Python: Select Interpreter** command.
182182

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)