Check Python environment for required DS/ML libraries and report versions or missing packages. Use when setting up a new project or debugging import errors.
Check the current Python environment for libraries required by the ds plugin. Report what is installed, what is missing, and provide install commands.
Run python3 --version and report the result. Require Python 3.9+.
For each required library, run a Python import and version check:
python3 -c "
import importlib
required = {
'pandas': 'pandas',
'scikit-learn': 'sklearn',
'scipy': 'scipy',
'statsmodels': 'statsmodels',
'numpy': 'numpy',
}
for pkg_name, import_name in required.items():
try:
mod = importlib.import_module(import_name)
version = getattr(mod, '__version__', 'installed')
print(f' {pkg_name}: {version}')
except ImportError:
print(f' {pkg_name}: MISSING')
"
Run the same check for optional libraries used in generated experiment code:
python3 -c "
import importlib
optional = {
'matplotlib': 'matplotlib',
'seaborn': 'seaborn',
'aeon': 'aeon',
'xgboost': 'xgboost',
'lightgbm': 'lightgbm',
'shap': 'shap',
'great_expectations': 'great_expectations',
'polars': 'polars',
'optuna': 'optuna',
}
for pkg_name, import_name in optional.items():
try:
mod = importlib.import_module(import_name)
version = getattr(mod, '__version__', 'installed')
print(f' {pkg_name}: {version}')
except ImportError:
print(f' {pkg_name}: not installed')
"
If any required libraries are missing, output the install command:
uv pip install pandas scikit-learn scipy statsmodels numpy
List only the missing packages in the command. If all required libraries are present, report that the environment is ready.
For missing optional libraries, suggest but do not insist:
uv pip install matplotlib seaborn aeon xgboost lightgbm shap great_expectations polars optuna
python3 is not found, suggest the user activate their environment first.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer