Configuring the Python Interpreter Environment

You can configure the Python interpreter environment in the ApplicationInfo.xml file on your 3DOrchestrate Station to run a Python script from the analytics case adapter.

You cannot run Python scripts from the analytics case adapter if your 3DOrchestrate Station is running on the cloud or on the Linux environment.

For more information, see Simulation | Design Exploration and Optimization | Results Analytics | Scripting APIs


Before you begin: Ensure that you have py4j installed in your Python environment using pip. You can install py4j with the following command: pip install py4j.
See Also
About the Analytics Case Adapter
Configuring a Results Analytics Case
Configuring the Python Interpreter Environment
  1. Copy the ApplicationInfo.xml template file from station_install_dir/os/reffiles/SMAExeConfig/ApplicationInfo.xml to station_install_dir/config/.

    station_install_dir is the installation location of your3DOrchestrate Station. os will be win_b64 or linux_a64 depending on your operating system.

  2. Edit the ApplicationInfo.xml file to add the <Application> tag with the following attributes:

    <Application Name="PythonForAnalytics" Version="unspecific" ExecPath="Path to python.exe" WorkingDir="" />

  3. Enter the path to your Python installation in the ExecPath="" attribute.

    This Python installation must have py4j installed. Install any additional libraries you are using with your Python script in the Python runtime specified in ExecPath="".

  4. Save the ApplicationInfo.xml file.

You can now load a Python script to run with the analytics case adapter.