René's URL Explorer Experiment


Title: Remembered external interpreter is not activated when opening a new terminal · Issue #26154 · microsoft/vscode-python · GitHub

Open Graph Title: Remembered external interpreter is not activated when opening a new terminal · Issue #26154 · microsoft/vscode-python

X Title: Remembered external interpreter is not activated when opening a new terminal · Issue #26154 · microsoft/vscode-python

Description: Type: Feature Request Description The Python extension correctly remembers the interpreter selected for a workspace, including virtual environments stored outside the workspace. However, after reopening the workspace, a newly created int...

Open Graph Description: Type: Feature Request Description The Python extension correctly remembers the interpreter selected for a workspace, including virtual environments stored outside the workspace. However, after reop...

X Description: Type: Feature Request Description The Python extension correctly remembers the interpreter selected for a workspace, including virtual environments stored outside the workspace. However, after reop...

Opengraph URL: https://github.com/microsoft/vscode-python/issues/26154

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remembered external interpreter is not activated when opening a new terminal","articleBody":"\nType: \u003cb>Feature Request\u003c/b>\n\n## Description\n\nThe Python extension correctly remembers the interpreter selected for a workspace, including virtual environments stored outside the workspace.\n\nHowever, after reopening the workspace, a newly created integrated terminal does not activate that remembered environment unless the Python extension has already been activated by some other action.\n\n## Setup\n\n* Windows\n* `ms-python.python` enabled\n* `ms-python.vscode-python-envs` disabled\n* External `venv`\n* Interpreter selected with `Python: Select Interpreter`\n\nRelevant settings:\n\n```json\n{\n    \"python.useEnvironmentsExtension\": false,\n    \"python.terminal.activateEnvironment\": true,\n    \"python.terminal.activateEnvInCurrentTerminal\": true,\n    \"python.experiments.optOutFrom\": [\n        \"pythonTerminalEnvVarActivation\"\n    ]\n}\n```\n\n## Steps to reproduce\n\n1. Open a workspace.\n2. Select an external virtual environment with `Python: Select Interpreter`.\n3. Close VS Code.\n4. Reopen the same workspace.\n5. Without opening a Python file, create a new integrated terminal.\n6. Run:\n\n```cmd\nwhere python\npython -c \"import sys; print(sys.executable)\"\n```\n\n## Actual behavior\n\nThe new terminal uses the system Python.\n\nThe selected interpreter is still remembered, but the environment is not activated until something else causes the Python extension to activate.\n\n## Expected behavior\n\nIf the workspace already has a remembered interpreter and:\n\n```json\n\"python.terminal.activateEnvironment\": true\n```\n\nis enabled, creating a new terminal should activate that interpreter, regardless of whether the environment lives inside or outside the workspace.\n\n## Why Python Environments is disabled\n\n`ms-python.vscode-python-envs` is disabled because there have been repeated reports of interpreter selection creating or modifying `.vscode/settings.json`:\n\n* microsoft/vscode-python-environments#1115\n* microsoft/vscode-python-environments#1118\n* microsoft/vscode-python-environments#1219\n\nAt the same time, microsoft/vscode-python#25291 points users toward Python Environments for terminal activation.\n\nThis leaves a gap where the legacy extension can remember the interpreter without `.vscode`, but cannot reliably activate it in a new terminal before the extension itself has been activated.\n\nThis request is for creating a new terminal to be sufficient to activate the Python extension and honor the already remembered workspace interpreter.\n\n\nExtension version: 2026.4.0\nVS Code version: Code 1.138.0 (7debcd0e2acdea1c52de81bf9ee1620444407dda, 2026-09-15T07:24:32Z)\nOS version: Windows_NT x64 10.0.26200\nModes:\n\n\u003cdetails>\n\u003csummary>System Info\u003c/summary>\n\n|Item|Value|\n|---|---|\n|CPUs|Intel(R) Core(TM) Ultra 7 155H (22 x 2995)|\n|GPU Status|2d_canvas: enabled\u003cbr>GPU0: VENDOR= 0x8086, DEVICE=0x7d55 [Intel(R) Arc(TM) Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.8509 *ACTIVE*\u003cbr>GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.9278\u003cbr>Machine model name: \u003cbr>Machine model version: \u003cbr>direct_rendering_display_compositor: disabled_off_ok\u003cbr>gpu_compositing: enabled\u003cbr>multiple_raster_threads: enabled_on\u003cbr>opengl: enabled_on\u003cbr>rasterization: enabled\u003cbr>raw_draw: disabled_off_ok\u003cbr>skia_graphite: disabled_off\u003cbr>trees_in_viz: disabled_off\u003cbr>video_decode: enabled\u003cbr>video_encode: enabled\u003cbr>webgl: enabled\u003cbr>webgpu: enabled\u003cbr>webnn: disabled_off|\n|Load (avg)|undefined|\n|Memory (System)|31.46GB (16.79GB free)|\n|Process Argv|--crash-reporter-id b0007876-ede7-429b-9916-63dd3a86a03d|\n|Screen Reader|no|\n|VM|0%|\n\u003c/details>\u003cdetails>\n\u003csummary>A/B Experiments\u003c/summary>\n\n```\nvsliv368cf:30146710\nbinariesv615:30325510\nnativeloc1:31344060\ndwcopilot:31170013\ndwoutputs:31242946\ncopilot_t_ci:31333650\ne5gg6876:31282496\npythonrdcb7:31342333\n6518g693:31463988\naj953862:31281341\nenvsactivate1:31551504\ncloudbuttont:31379625\n3efgi100_wstrepl:31403338\n839jf696:31457053\nec5jj548:31422691\ncp_cls_t_966_ss:31526232\n4je02754:31466945\nc3h7c220:31478652\ncp_cls_c_1081:31454833\nconptydll_true:31498968\ne9c30283:31461165\nc9b86496:31447327\ncontrol_6dc23131:31582662\nc-26112-aa:31454028\nei9d7968:31496641\nchat:31457767\n8hig5102:31480529\n89g7j272:31518289\ni2gc6536:31499202\n52612955:31516516\nec1eg703:31520046\nddid_t:31478206\nhmra_i5g22:31518061\n7df3h592:31512476\ncp_cls_t_1082:31535311\nlogging_enabled_new:31498466\nj0d79568:31499440\njb_cp_cls_t_632:31543129\n56dj4588:31512888\n32d76977:31512328\nha629193:31508444\na1ije391_t:31540920\njbcp_cls_pctr_t:31531130\ncp_intellij_t_nes:31548657\nd7b18187:31526828\nahp-both-windows:31556933\nihg5j128:31534457\n7g2b5551:31542111\nnes-ex-cf-euporie-03:31542868\nenable_editor_pane_layout:31569726\nallow-none:31555437\n36h42362:31564511\nc7c27ce7:31554789\n1h923230:31564177\ntreatment-23-1:31555779\nunuse_dynamic_mcp:31555281\n0d8dfbc3:31570291\nnemo-v2:31565334\n0c1h4866:31566224\nsession-mark-done:31558131\n5b8j3302:31564601\nautotiers:31584978\nmangle-name-control:31572633\nallow-signed-out:31584137\nintellij_nes_preview_t:31580086\n39a5d156:31574986\n2bfb8b39:31576696\noutline:31581109\naw-autom-on:31583758\nrevealsession_treatment_7ed7e840:31582194\n4ab0b639:31584543\ncodex-agent-host-stable-control:31585316\npermission_prompt_control:1332567\nccr_pr_nudge_adoption:1319471\nvsc_wsm_c:1340633\ncfee5631:1379228\n3aced641:1389836\nc_920dh436:1401463\n\n```\n\n\u003c/details>\n\n\u003c!-- generated by issue reporter -->","author":{"url":"https://github.com/chrisd314","@type":"Person","name":"chrisd314"},"datePublished":"2026-09-16T23:51:54Z","url":"https://github.com/microsoft/vscode-python/issues/26154"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8a632d5f-7890-60bd-aff7-bdb7b0471b56
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id89EA:3073EF:2130A7:2E9040:6AFD71A9
html-safe-nonce55571356f3713d1470eeb024b43b2a80d68d425c25f3558a90662b940e5a50ee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUVBOjMwNzNFRjoyMTMwQTc6MkU5MDQwOjZBRkQ3MUE5IiwidmlzaXRvcl9pZCI6IjUxNzc2MjAwMDUyNTE4MDU2MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac39eb317b0ec0414a1bf368ab4b06303bf06c8758286d04707956a414bcd2813c
hovercard-subject-tagissue:5481129798
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/26154/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aaa04dfa56c51ff6aba770d7f0d172ef19a4a25cab85dc92544c2df969d6845d/microsoft/vscode-python/issues/26154
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aaa04dfa56c51ff6aba770d7f0d172ef19a4a25cab85dc92544c2df969d6845d/microsoft/vscode-python/issues/26154
og:image:altType: Feature Request Description The Python extension correctly remembers the interpreter selected for a workspace, including virtual environments stored outside the workspace. However, after reop...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechrisd314
hostnamegithub.com
expected-hostnamegithub.com
Nonee54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032
turbo-cache-controlno-preview
go-importgithub.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id106462765
octolytics-dimension-repository_nwomicrosoft/vscode-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id49946255
octolytics-dimension-repository_parent_nwoDonJayamanne/pythonVSCode
octolytics-dimension-repository_network_root_id49946255
octolytics-dimension-repository_network_root_nwoDonJayamanne/pythonVSCode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5be0bf2b8cf26f8897d31e6bc3c232d328b12a54
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/26154#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F26154
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F26154
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fvscode-python
Reloadhttps://github.com/microsoft/vscode-python/issues/26154
Reloadhttps://github.com/microsoft/vscode-python/issues/26154
Reloadhttps://github.com/microsoft/vscode-python/issues/26154
microsofthttps://github.com/microsoft
vscode-pythonhttps://github.com/microsoft/vscode-python
Codehttps://github.com/microsoft/vscode-python
Issues346 (346)https://github.com/microsoft/vscode-python/issues
Pull requests57 (57)https://github.com/microsoft/vscode-python/pulls
Discussionshttps://github.com/microsoft/vscode-python/discussions
Actionshttps://github.com/microsoft/vscode-python/actions
Wikihttps://github.com/microsoft/vscode-python/wiki
Security and quality2 (2)https://github.com/microsoft/vscode-python/security
Insightshttps://github.com/microsoft/vscode-python/insights
https://github.com/microsoft/vscode-python
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/26154
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/26154
Remembered external interpreter is not activated when opening a new terminalhttps://github.com/microsoft/vscode-python/issues/26154#top
https://github.com/anthonykim1
Public previewhttps://github.com/orgs/community/discussions/202617
https://github.com/chrisd314
cdiamantis (chrisd314)https://github.com/chrisd314
on Sep 16, 2026https://github.com/microsoft/vscode-python/issues/26154#issue-5481129798
Python: Select Interpreter command doesn't work and is not saved vscode-python-environments#1115https://github.com/microsoft/vscode-python-environments/issues/1115
Settings unexpectedly appearing in the settings.json file vscode-python-environments#1118https://github.com/microsoft/vscode-python-environments/issues/1118
vscode-python-envs forgets environment and writes faulty ./.vscode/settings.json vscode-python-environments#1219https://github.com/microsoft/vscode-python-environments/issues/1219
#25291https://github.com/microsoft/vscode-python/issues/25291
github-actionshttps://github.com/apps/github-actions
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on Sep 16, 2026https://github.com/microsoft/vscode-python/issues/26154#event-31283159539
vs-code-engineeringhttps://github.com/apps/vs-code-engineering
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on Sep 17, 2026https://github.com/microsoft/vscode-python/issues/26154#event-31283642110
vs-code-engineeringhttps://github.com/apps/vs-code-engineering
Anthony Kim (anthonykim1)https://github.com/anthonykim1
on Sep 17, 2026https://github.com/microsoft/vscode-python/issues/26154#event-31283642783
https://github.com/mohityadav8
Mohit Yadav (mohityadav8)https://github.com/mohityadav8
on Sep 17, 2026https://github.com/microsoft/vscode-python/issues/26154#issuecomment-5709876815
Anthony Kim (@anthonykim1)https://github.com/anthonykim1
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/26154
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/26154
Anthony Kim (anthonykim1)https://github.com/anthonykim1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.