Skip to content

gh-122622: Add sys._preexec hook for REPL#144724

Open
anthonykim1 wants to merge 2 commits into
python:mainfrom
anthonykim1:anthonykim1/addPreexecReplHook
Open

gh-122622: Add sys._preexec hook for REPL#144724
anthonykim1 wants to merge 2 commits into
python:mainfrom
anthonykim1:anthonykim1/addPreexecReplHook

Conversation

@anthonykim1
Copy link
Copy Markdown

@anthonykim1 anthonykim1 commented Feb 11, 2026

See issue mentioned for background info: #122622

Adding preexec hook will allow VS Code to enable shell integration for users on Windows! VS Code setting: python.terminal.shellIntegration.enabled

This also means we can also provide lsp completions in the REPL: https://code.visualstudio.com/updates/v1_101#_language-server-based-terminal-suggest

Also planning to enable PY_REPL back since #126131 is resolved.

Thank you

/cc @picnixz @Tyriar @brettcannon

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Feb 11, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Feb 11, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant