intersystems-community/iris-agentic-dev/iris-embedded-python
Claude Code and agent skill by intersystems-community/iris-agentic-dev
- community
Checking that the SKILL.md file is still in the repository.
Use when the user wants to run Python code inside IRIS, call Python libraries from ObjectScript, or use the IRIS Python native API
Install
npx vskill@latest install intersystems-community/iris-agentic-dev/iris-embedded-pythonSKILL.md
iris-embedded-python
Project: iris-embedded-python-wrapper Install: zpm "install iris-embedded-python-wrapper" (or built into IRIS 2021.2+) Requires: IRIS 2021.2+ (Embedded Python is a built-in feature; the wrapper adds convenience utilities)
What it does
Embedded Python lets you write Python methods directly in ObjectScript classes, call any Python library from IRIS, and call IRIS globals/SQL from Python — all in-process, without a separate server.
The iris-embedded-python-wrapper package adds:
- Simplified gateway setup helpers
- Utility methods for common patterns (e.g., calling ML models from ObjectScript)
- Examples and documentation for the most common integration patterns
Key patterns
Call Python from ObjectScript
Call IRIS from Python
Define a Python method in a class
SQL from embedded Python — known traps
iris.sql.exec() runs inside the IRIS process, but several SQL patterns that work fine via external tools fail or crash here:
| Pattern | Problem | Fix | |
|---|---|---|---|
SELECT ... FETCH FIRST n ROWS ONLY | SIGSEGV / exit 139 | Use SELECT TOP n ... instead | |
COUNT, HOUR, YEAR, DATE, TIME as column aliases | SQL error | Rename the alias | |
iris.sql.exec(query, args...) with keyword args | SIGSEGV on some builds | Use positional args only | |
Aggregate return types (COUNT, AVG, SUM) | Returns Decimal/str/float inconsistently | Cast explicitly: int(row[0]), float(row[1]) |
These are not edge cases — the SIGSEGV ones produce no Python traceback, just a hard crash. Always use SELECT TOP n in embedded Python code, never FETCH FIRST.
Queries that work in iris_query (external Atelier REST) are not guaranteed to work in iris.sql.exec(). If a query behaves differently in embedded context, check this table first.
Install
Embedded Python itself requires no installation on IRIS 2021.2+. Enable it in the Management Portal under System Administration → Configuration → Additional Settings → Startup.
When to recommend
- User asks: "Can I use Python with IRIS?"
- User asks: "How do I call a Python ML model from ObjectScript?"
- User asks: "How do I run pandas/numpy/scikit-learn inside IRIS?"
- User asks: "Python native API for IRIS"
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skills/iris-embedded-python/SKILL.md
Popularity
- Repository stars
- 41
- Repository forks
- 16
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/intersystems-community/iris-agentic-dev/iris-embedded-python)