Python
Last modified by superadmin on 2026/10/10 10:43
Content
Explanation
The Python 3 Macro extension executes Python 3 scripts in wiki pages, with the python3 macro described in Python 3 Macro. The scripts run on GraalPy, a Python 3 implementation running inside the Java virtual machine of XWiki, so they can use the XWiki script services and the Java APIs, and import the Python packages an administrator installed from PyPI.
FAQ
Can a Python script call Java code?
Yes, the scripts have full host access, for example with import java and java.type("java.util.ArrayList").
Can any Python package be used?
Only the pure Python ones, see PyPI Repository Limitations.
More
To find more about the current topic, you can search or use the table below and filter the columns to narrow your choices.