Skip to content

Test support for detection and selection of conda environments lacking a python interpreter #18731

@karrtikr

Description

@karrtikr

Refs: #18357

Complexity: 4

Create Issue


Requirements

  • Make sure Conda is installed. Tagging everyone on the team as we already have a bunch of environments available, and it may take a significant time for other folks to install stuff.
  • Use pre release build of the python extension.

Step 1: Test discovery

  1. Activate Python extension
  2. Create two conda environments like so:
conda create -n test1
conda create -n test2
  1. Refresh the interpreter's list using the refresh icon to see the environment:
    image

Step 2: Test selection

  1. Select the environment via the interpreters list.
  2. Notice status bar displays the following:
    image
  3. Expand the notification and click on the hyperlink, the output channel should open which describes the commands extension is running:
    image
  4. Note environment should still be usable while installation is ongoing, play around with it. Try debugging a simple python file for example:
print("Hello world!")

Packages like ipykernel should also be installable at this point.

  1. Notice status bar indicates that a interpreter refresh is triggered once installation has finished.
  2. Once refresh has finished, notice interpreter list now indicates that Python is installed within the environment:

6. Double check the output channel to make sure there aren't any unexpected errors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions