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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a632d5f-7890-60bd-aff7-bdb7b0471b56 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89EA:3073EF:2130A7:2E9040:6AFD71A9 |
| html-safe-nonce | 55571356f3713d1470eeb024b43b2a80d68d425c25f3558a90662b940e5a50ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUVBOjMwNzNFRjoyMTMwQTc6MkU5MDQwOjZBRkQ3MUE5IiwidmlzaXRvcl9pZCI6IjUxNzc2MjAwMDUyNTE4MDU2MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 39eb317b0ec0414a1bf368ab4b06303bf06c8758286d04707956a414bcd2813c |
| hovercard-subject-tag | issue:5481129798 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/26154/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aaa04dfa56c51ff6aba770d7f0d172ef19a4a25cab85dc92544c2df969d6845d/microsoft/vscode-python/issues/26154 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aaa04dfa56c51ff6aba770d7f0d172ef19a4a25cab85dc92544c2df969d6845d/microsoft/vscode-python/issues/26154 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chrisd314 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5be0bf2b8cf26f8897d31e6bc3c232d328b12a54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width