Skip to content

Change default active interpreter to point to the python in current path #16499

Closed

Description

As a notice user I test & run Python (& or Jupyter) with python thats in my current path.
However when using Python or Jupyter notebooks a different Python interpreter is used hence:
In Jupyter extension

  • I get prompted to install ipykernel (no idea what this is, i'll click ok)
  • After running a cell, i get module not found errors

Suggestion:
Change the active interpreter in the Python extnsion to point to what's in the current path.

Related issue in Jupyter is here microsoft/vscode-jupyter#5998
(We could either change Jupyter extension to use Python in path or optionally make this change in Python exension)

Originally posted by Don Jayamanne (@DonJayamanne) in a discussion

Activity

  1. brettcannon commented on Jun 16, 2021

    @brettcannon
    MemberAuthor

    The problem I see with this is what python points to changes every time you install Python. For instance, it might be CPython 3.9.4 today, but when I install CPython 3.9.5 and CPython 3.8.10 later in that order then python will point at Python 3.8 which also won't have ipykernel installed.

  2. added
    area-environmentsFeatures relating to handling interpreter environments
    feature-requestRequest for new features or functionality
    and removed
    triage-neededNeeds assignment to the proper sub-team
    on Jun 16, 2021
  3. locked and limited conversation to collaborators on Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-environmentsFeatures relating to handling interpreter environmentsfeature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions