Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Version Display Issue #15829

Closed
1 of 2 tasks
KGZaker opened this issue Jul 7, 2024 · 4 comments
Closed
1 of 2 tasks

Python Version Display Issue #15829

KGZaker opened this issue Jul 7, 2024 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@KGZaker
Copy link

KGZaker commented Jul 7, 2024

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Hello,

My system environment is macOS 14.5, using the Jupyter plugin version v2024.6.0, and Miniforge Conda version 24.5.0. I have discovered an issue where the Python version number is not displayed correctly when using the “Python: Select Interpreter” command (see the attached screenshot, where both “macbio” and “macbio_x86” should be Python 3.12.4, but they are shown as Python 3.1.X).
Code 2024-07-07 10 24 21

Interestingly, when I create an .ipynb file using the “Create: New Jupyter Notebook” feature and select the kernel with the incorrectly displayed Python version,
image

a popup (as shown in the screenshot) appears.
Code 2024-07-07 10 26 18

However, if I ignore this popup, the kernel still works correctly. Therefore, it seems that the issue might only be related to the retrieval of the Python version information, as the Python functionality still works correctly.

VS Code Version

1.91.0

Jupyter Extension Version

v2024.6.0

Jupyter logs

No response

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

@KGZaker KGZaker added the bug Issue identified by VS Code Team member as probable bug label Jul 7, 2024
@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jul 8, 2024

However, if I ignore this popup, the kernel still works correctly. Therefore, it seems that the issue might only be related to the retrieval of the Python version information, as the Python functionality still works correctly.

Yes that is correct.

SOLUTION (TEMPORARY WORK AROUND)

As a work around, please ignore this warning message.

@jgwill
Copy link

jgwill commented Jul 8, 2024

An option to ignore this warning would be fantastic :)

@rubensa
Copy link

rubensa commented Jul 9, 2024

Switching to pre-release version of Python extension should fix the issue. See: microsoft/vscode-python#23649

@DonJayamanne
Copy link
Contributor

Closing in favour of the Python extension issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants