Create a lightweight install option#175
Open
kaggle-agent wants to merge 2 commits into
Open
Conversation
Playwright pulls in Chromium and ~20 system libraries but is only used by the web.Browser tool (~3% of benchmarks). Move it (and nest-asyncio) into a new `web-tools` optional group with lazy imports, so users who don't need the browser tool can skip the heavy install. The kaggle group still pulls it in, so the Kaggle/CI image is unaffected. Co-authored-by: kaggle-agent <kaggle-agent@users.noreply.github.com>
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.
Playwright pulls in Chromium and ~20 system libraries and +400 MB of binaries but is only used by
the web.Browser tool, which itself seems to be used by relatively few benchmarks. Move it (and nest-asyncio) into
a new
web-toolsoptional group with lazy imports, so users who don't need the browser tool can skip the heavy install. This should make kaggle-benchmarks small enough to be added to docker-python for some but not all use cases. The kaggle group still pulls in playwright, so the Kaggle/CI image remains unaffected.Note that this doesn't change the user experience for people who install the base package, as pip installing playwright doesn't cover the chromium binaries required for playwright to run.
Precursor PR to https://github.com/Kaggle/docker-python/compare/add_benchmarks
Co-authored-by: kaggle-agent kaggle-agent@users.noreply.github.com
Task: sohier-20260619224002-c6cb83f1