Introduction to Embedded Python

Integrate Python code and libraries within InterSystems IRIS alongside ObjectScript.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/sorodriguezz/skills-objectscript --skill introduction-to-embedded-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Introduction to Embedded Python
Source: https://github.com/sorodriguezz/skills-objectscript/tree/main/skills/introduction-to-embedded-python
Command: npx skills add https://github.com/sorodriguezz/skills-objectscript --skill introduction-to-embedded-python

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill bridges the gap between ObjectScript and Python, allowing developers to leverage the strengths of both languages within the InterSystems IRIS data platform, eliminating the need for external gateways or SDKs.

Core Features & Use Cases

  • Use Python Packages from ObjectScript: Import and utilize any Python library directly within your ObjectScript code.
  • Call InterSystems IRIS APIs from Python: Access and manipulate InterSystems IRIS data and functionalities using Python.
  • Mixed Language Development: Write ObjectScript and Python code within the same InterSystems IRIS class for maximum flexibility.
  • Use Case: A developer can use a Python library for advanced data analysis directly within an ObjectScript application, or a Python developer can easily interact with the InterSystems IRIS database using familiar Python syntax.

Quick Start

Import the 'math' Python module from ObjectScript using the provided command.

Frequently Asked Questions about Introduction to Embedded Python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call Python packages from ObjectScript in InterSystems IRIS?

You can call Python packages from ObjectScript by importing the Python module directly using embedded Python commands, enabling seamless library execution without external gateways.

Can I interact with InterSystems IRIS SQL tables and classes using Python?

Yes, you can interact with InterSystems IRIS SQL and classes using the 'iris' module in Python, allowing data manipulation and API access with familiar Python syntax.

Does embedded Python support writing ObjectScript and Python in the same class?

Embedded Python supports mixed-language class definitions, allowing you to write ObjectScript and Python code within the same InterSystems IRIS class for maximum development flexibility.

What is the best way to integrate Python code within the InterSystems IRIS environment?

The best way to integrate Python in InterSystems IRIS is using embedded Python, which eliminates external SDKs and handles data type conversions between Python and ObjectScript natively.

Do I need an external gateway to use Python libraries for data analysis in ObjectScript?

No, you do not need an external gateway. Embedded Python bridges the gap natively, letting you import libraries like 'geopy' directly within your ObjectScript application.

How does data type conversion work between Python and ObjectScript?

Data type conversion between Python and ObjectScript is handled natively by the embedded Python integration, supporting arbitrary command execution and seamless data exchange across both languages.