From 687e2c8746ce166c569ed54885274620cb18e78f Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Mon, 27 Mar 2023 18:54:06 +0000 Subject: [PATCH] Update environments section under Python language --- .../python/no-interpreter-selected-statusbar.png | 3 --- .../python/selected-interpreter-status-bar.png | 3 --- docs/languages/python.md | 12 ++++-------- docs/python/environments.md | 2 +- .../no-interpreter-selected-statusbar.png | 4 ++-- 5 files changed, 7 insertions(+), 17 deletions(-) delete mode 100644 docs/languages/images/python/no-interpreter-selected-statusbar.png delete mode 100644 docs/languages/images/python/selected-interpreter-status-bar.png diff --git a/docs/languages/images/python/no-interpreter-selected-statusbar.png b/docs/languages/images/python/no-interpreter-selected-statusbar.png deleted file mode 100644 index afcab50cce..0000000000 --- a/docs/languages/images/python/no-interpreter-selected-statusbar.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b9c4a3e11f6fcb58b8a61064ac0aa4bf59b5998b412fef6a7b8391103549340 -size 1336 diff --git a/docs/languages/images/python/selected-interpreter-status-bar.png b/docs/languages/images/python/selected-interpreter-status-bar.png deleted file mode 100644 index f1dd5b93c8..0000000000 --- a/docs/languages/images/python/selected-interpreter-status-bar.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:00b7d7eb57500db4b41fa03fca2ac1ed220c3683a3f42f578a52b4c16a1efd6b -size 863 diff --git a/docs/languages/python.md b/docs/languages/python.md index fc375dadd3..bfe57860fd 100644 --- a/docs/languages/python.md +++ b/docs/languages/python.md @@ -86,15 +86,15 @@ Additionally, the [Django](/docs/python/tutorial-django.md) and [Flask](/docs/py 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). -The current environment is shown on the left side of the VS Code Status Bar: +The current environment is shown on the right side of the VS Code Status Bar: -![Selected Python interpreter in the Status Bar](images/python/selected-interpreter-status-bar.png) +![Status Bar showing a selected interpreter](images/environments/selected-interpreter-status-bar.png) The Status Bar also indicates if no interpreter is selected: -![Status bar showing no selected Python interpreter](images/python/no-interpreter-selected-statusbar.png) +![Status bar showing no selected Python interpreter](images/environments/no-interpreter-selected-statusbar.png) -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. +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. 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. @@ -102,10 +102,6 @@ To change the current interpreter, which includes switching to conda or virtual 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)). -### Installing packages - -Packages are installed using the **Terminal** panel and commands like `pip install ` (Windows) and `pip3 install ` (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. - ## Jupyter notebooks 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. diff --git a/docs/python/environments.md b/docs/python/environments.md index 841e03ef59..335d781794 100644 --- a/docs/python/environments.md +++ b/docs/python/environments.md @@ -176,7 +176,7 @@ The selected interpreter version will show on the right side of the Status Bar. The Status Bar also reflects when no interpreter is selected. -![No interpreter selected](images/environments/no-interpreter-selected-statusbar.png) +![Status bar showing no selected Python interpreter](images/environments/no-interpreter-selected-statusbar.png) In either case, clicking this area of the Status Bar is a convenient shortcut for the **Python: Select Interpreter** command. diff --git a/docs/python/images/environments/no-interpreter-selected-statusbar.png b/docs/python/images/environments/no-interpreter-selected-statusbar.png index afcab50cce..254883d082 100644 --- a/docs/python/images/environments/no-interpreter-selected-statusbar.png +++ b/docs/python/images/environments/no-interpreter-selected-statusbar.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8b9c4a3e11f6fcb58b8a61064ac0aa4bf59b5998b412fef6a7b8391103549340 -size 1336 +oid sha256:7044aa723a34279207149a2c02aa34bb1738292b61160587ea7af8a1e9542ca6 +size 8402