forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-terminalfeature-requestRequest for new features or functionalityRequest for new features or functionalitylinuxmacostriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-teamverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Description
Currently opening the REPL will open the default shell with a custom environment:
vscode-python/src/client/common/terminal/service.ts
Lines 82 to 86 in e90b95d
this.terminal = this.terminalManager.createTerminal({ | |
name: this.options?.title || 'Python', | |
env: { PYTHONSTARTUP: this.envVarScript }, | |
hideFromUser: this.options?.hideFromUser, | |
}); |
And then run & .../python3
to launch it as a sub-shell:

Why not set the environment variable globally such that any python sub-shell will have shell integration? Adding this to my pwsh profile works:
$env:PYTHONSTARTUP = "/Users/tyriar/.vscode-insiders/extensions/ms-python.python-2024.13.2024080701-darwin-arm64/python_files/pythonrc.py"

Metadata
Metadata
Assignees
Labels
area-terminalfeature-requestRequest for new features or functionalityRequest for new features or functionalitylinuxmacostriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-teamverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded