diff --git a/src/reference/antora/modules/ROOT/pages/scripting.adoc b/src/reference/antora/modules/ROOT/pages/scripting.adoc index ddbace3806..15fd2d3ac7 100644 --- a/src/reference/antora/modules/ROOT/pages/scripting.adoc +++ b/src/reference/antora/modules/ROOT/pages/scripting.adoc @@ -298,11 +298,10 @@ The JSR223 engine implementation for JavaScript, removed from Java by itself, ha See more information about enabling JavaScript support in GraalVM and what https://www.graalvm.org/latest/reference-manual/js/[configuration options] can be propagated via script variables. In particular, an `org.graalvm.polyglot:js` dependency has to be added to the target project to support JavaScript. - Starting with version 6.4, the Python scripts support has been migrated to GraalVM Polyglot as well. Now these scripts can be written in Python 3.x and can use third-party libraries. See https://www.graalvm.org/latest/reference-manual/python/[GraalPy] documentation for more information. -In particular, an `rg.graalvm.polyglot:python` dependency has to be added to the target project to support JavaScript. +In particular, an `rg.graalvm.polyglot:python` dependency has to be added to the target project to support Python. By default, the framework sets `allowAllAccess` to `true` on the shared Polyglot `Context` which enables this interaction with host JVM: @@ -315,4 +314,7 @@ By default, the framework sets `allowAllAccess` to `true` on the shared Polyglot * The creation and use of new sub-processes. * The access to process environment variables. -This can be customized via overloaded `PolyglotScriptExecutor` constructor which accepts a `org.graalvm.polyglot.Context.Builder`. \ No newline at end of file +This can be customized via overloaded `PolyglotScriptExecutor` constructor which accepts a `org.graalvm.polyglot.Context.Builder`. +For example, the Jython-based scripts still can be executed with an `option("python.EmulateJython", "true")`. +However, it is recommended to migrate to GraalPy altogether for better interpretation performance. +Therefore, `import` for Java classes does not work anymore, instead `import java` has to be used and its `java.type()` function, respectively. \ No newline at end of file