bx-jython

Execute Python code in BoxLang via jythonEval and jythonEvalFile.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ortus-boxlang/skills --skill bx-jython
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bx-jython
Source: https://github.com/ortus-boxlang/skills/tree/main/boxlang-modules/bx-jython
Command: npx skills add https://github.com/ortus-boxlang/skills --skill bx-jython

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

BoxLang users can execute Python code within BoxLang workflows, enabling data processing, scripting, and inter-language interactions without leaving the BoxLang environment.

Core Features & Use Cases

  • Inline Python evaluation with jythonEval to run short scripts.
  • Python file execution with jythonEvalFile to run modules from files.
  • Bindings of BoxLang variables into Python and retrieval of results back into BoxLang.
  • Use the bx:jython component for multi-line Python blocks and richer inter-language workflows.

Quick Start

Run a Python snippet inline with jythonEval to perform a simple task and verify results.

Frequently Asked Questions about bx-jython

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

FAQPage Schema
How do I execute Python code inside BoxLang workflows?

To execute Python code inside BoxLang, use the bx-jython bridge which provides jythonEval for inline scripts and jythonEvalFile for running Python modules from files, enabling seamless interlanguage interactions.

Can I bind BoxLang variables to Python scripts?

Yes, you can bind BoxLang variables to Python scripts. The bx-jython bridge supports seamless variable bindings, allowing you to pass BoxLang variables into Python and retrieve the results back into your BoxLang environment.

What is the best way to run multi-line Python scripts in a BoxLang application?

The best way to run multi-line Python scripts in a BoxLang application is using the bx:jython component, which supports richer inter-language workflows and complex Python blocks within your BoxLang code.

Does BoxLang support running Python files for data processing tasks?

Yes, BoxLang supports running Python files for data processing tasks. By using the jythonEvalFile function from the bx-jython module, you can execute Python modules directly from files within your BoxLang workflows.

Do I need to install Python separately to use interlanguage scripting with BoxLang?

You need the bx-jython module to enable interlanguage scripting with BoxLang. This bridge allows you to execute Python code and perform scripting tasks without leaving the BoxLang environment.

Why use inline Python evaluation in BoxLang instead of external scripts?

Using inline Python evaluation in BoxLang with jythonEval allows you to run short scripts and perform quick data processing tasks directly within your workflows, eliminating the need to manage external scripts or switch environments.