Smarter assistant python pkg install #8337
Merged
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.
Note
This is the same as #8289 just applied to
main
instead of the release branch.Addresses #8174.
Adds a new
installPythonPackage
tool that enables the Assistant to directly install Python packages instead of suggesting!pip
commands that don't work in Positron's environment. The Assistant can now handle package installation requests by invoking the appropriate package manager (pip, uv, conda) through the integrated tool.Note: This may be way too intense of a fix for a simple behavior change. Not at all married to the whole new tool at all.
Release Notes
New Features
Bug Fixes
!pip commands
QA Notes
Ask the Assistant to install Python packages like
palmerpenguins
andplotnine
. The Assistant should now use the built-in installation tool rather than suggesting !pip commands.Test in assistant
The Assistant should no longer suggest
!pip install
commands and instead handle package installation automatically using the new tool.