feat(docker): add python3 + data-analysis libs to bash image#65
Closed
mani-muon wants to merge 1 commit into
Closed
feat(docker): add python3 + data-analysis libs to bash image#65mani-muon wants to merge 1 commit into
mani-muon wants to merge 1 commit into
Conversation
LLM-generated bash scripts overwhelmingly invoke python3 (often with numpy/pandas/matplotlib) for any arithmetic, parsing, or plotting work. Without an interpreter in the bash image these calls return command not found or ModuleNotFoundError. Adds python3, python3-numpy, python3-pandas, python3-matplotlib, python3-openpyxl, python3-pil via apt to cover the common LLM-generated patterns. Apt-installed versions keep the rebuild fast and the dependency surface stable; scripts that need bleeding-edge versions can still target lang: py. Image size increases roughly 400 MB but matches the expected shape of a shell + scripting sandbox.
aron-muon
approved these changes
May 20, 2026
aron-muon
requested changes
May 20, 2026
Owner
aron-muon
left a comment
There was a problem hiding this comment.
We have dedicated python images, if an LLM is using the wrong tool, the prompting needs updated instead
Owner
|
Introduced fix in this PR #66 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds
python3plus the common data-analysis libraries (numpy/pandas/matplotlib/openpyxl/Pillow) to the bash image sobash_toolcalls of the formpython3 -c "..."resolve successfully.Fixes # (no existing issue — happy to file one if preferred)
Type of change
Why
After deploying the bash image, LLM-driven
bash_toolcalls were observed invokingpython3(often withimport pandas,numpy,matplotlib) for arithmetic, parsing, and plotting. Without a Python interpreter in the bash image these calls returncommand not found, and with only stdlib Python they would returnModuleNotFoundErroron the firstimport.Package selection
Apt-installed for fast rebuilds and stable deps:
python3— interpreterpython3-numpy,python3-pandas,python3-matplotlib— the data-analysis trio observed in LLM-generated scriptspython3-openpyxl— Excel read/writepython3-pil— image manipulationSkipped scipy and scikit-learn (each ~150-300 MB, narrower use cases). Easy follow-up to add if needed.
The dedicated
kubecoderun-pythonimage with the full pip-managed scientific stack still serveslang: "py"callers that need bleeding-edge versions.Image size impact
Roughly +400 MB.
How Has This Been Tested?
dhi.ioregistry auth which I don't have. CI build will catch any typo immediately.scripts/test-images.sh -l bashafter the build) — depends on CIChecklist