Using Embedded Python

Execute Python code and import packages within InterSystems IRIS.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables developers to leverage the power of Python directly within InterSystems IRIS applications, bridging the gap between ObjectScript and Python for enhanced functionality.

Core Features & Use Cases

  • Seamless Integration: Execute Python code from ObjectScript, SQL, and within InterSystems IRIS classes.
  • Package Management: Install and import Python packages for extended capabilities.
  • Use Case: Imagine you need to perform complex data analysis or utilize a specific Python library for machine learning within your InterSystems IRIS application. This Skill allows you to do so without leaving the IRIS environment.

Quick Start

Use the Using Embedded Python skill to import the 'math' Python module and print the value of pi.

Frequently Asked Questions about Using Embedded Python

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

FAQPage Schema
How do I run Python code within InterSystems IRIS?

To run Python code within InterSystems IRIS, you can execute it directly from ObjectScript, use SQL functions, or define Python methods inside IRIS classes. This integration enables you to leverage Python's library ecosystem for advanced application development without leaving the IRIS environment.

Can I install and use external Python packages in InterSystems IRIS?

Yes, you can install and import external Python packages in InterSystems IRIS. The embedded Python integration supports package management, allowing you to access Python's extensive library ecosystem for complex data analysis or machine learning tasks directly within your IRIS applications.

What is the best way to integrate Python with ObjectScript?

The best way to integrate Python with ObjectScript is by using the embedded Python capabilities of InterSystems IRIS. This allows you to seamlessly execute Python code from ObjectScript, bridging the gap between the two languages to enhance your application's functionality.

Does InterSystems IRIS support executing Python methods inside IRIS classes?

Yes, InterSystems IRIS supports executing Python methods inside IRIS classes. You can define and run Python code directly within your class definitions, facilitating seamless integration and allowing you to utilize Python packages for extended application capabilities.

How do I import a Python module like math in InterSystems IRIS?

To import a Python module like math in InterSystems IRIS, you use the embedded Python integration to import the module and access its functions. For example, you can import the math module to print the value of pi directly from your IRIS environment.