Skip to main content
You can use third-party libraries when writing Python in . In the Jep Java API, you can choose between two types of Python interpreters:
  • SharedInterpreter
  • SubInterpreter
Keep the following in mind when you configure your environment to use Python. Use SharedInterpreter if:
  • You are new to running Python scripts in .
  • You are using third-party libraries like NumPy.
Use SubInterpreter if:
  • You require parallel script execution.
  • Full third-party library support is not important to you.
This behavior is controlled by the SHARED_INTERPRETER environment variable. If you set the environment variable SHARED_INTERPRETER=false, uses SubInterpreter. If you do not set the environment variable, or you explicitly set it to true, defaults to SharedInterpreter.
While restricts access to modules based on the value of ScriptingEngineHardeningLevel, it cannot fully guarantee that third-party libraries installed on the system abide by these rules. Use this with caution in highly controlled environments.