-
Notifications
You must be signed in to change notification settings - Fork 92
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
install python modules in Terminal when python.installModulesInTerminal
enabled
#5529
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adds a new command `python.installModulesInTerminal`, that, when enabled, forces python installations to occur in the Terminal.
jmcphers
previously approved these changes
Nov 27, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; confirmed that turning on this new setting lets me see the installs in a Terminal.
seeM
previously approved these changes
Nov 27, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM!
extensions/positron-python/src/client/common/installer/moduleInstaller.ts
Outdated
Show resolved
Hide resolved
leftover from a previous attempt to use ConfigurationService instead of WorkspaceService
seeM
approved these changes
Nov 27, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
python.installModulesInTerminal
, that, when enabled, forces python installations to occur in the Terminalpositron/extensions/positron-python/src/client/common/terminal/types.ts
Line 44 in 54cbc06
QA Notes
When
python.installModulesInTerminal
is enabled, any flow that passes through theinstallModule()
method should run the install command in a Terminal visible to the user. When the option is not enabled, python module installations should occur in the background, invisible to the user.Project Wizard
ipykernel
install in a TerminalCommand Prompt
Python: Create Environment
ipykernel
installipykernel
install in a TerminalSelect interpreter that does not have
ipykernel
Python: Select Interpreter
command that does not already haveipykernel
installedipykernel
installipykernel
install in a Terminal