Several examples in the IDK (Insight developer kit) require Python, R, or other third-party software. For security purposes, only the most important system environment variables are leaked through to the Insight worker.
To execute Python or R, some configuration to the application.properties file is required.
- Open C:\ProgramData\FICO\XpressInsight\Worker\config\application.properties in the editor of your choice.
- Configure
insight.worker.execution.environment.<env_var>
for your use case.
Important: In this file, special characters must be escaped. For example, the folder separator '\' becomes '\\'.
- After the configuration is done, open Windows task manager and restart Xpress Insight 5 Worker to register the changes.
- To run the Python examples, install Python package 'xpressinsight', and optionally 'xpress' for solving optimization models, and corresponding dependencies such as numPy and Pandas.
PyPI users
insight.worker.execution.environment.MOSEL_RESTR=0
insight.worker.execution.environment.Path=<path_to_pythondir>
Example:
insight.worker.execution.environment.Path=C:\\Program Files\\Python39
conda users
insight.worker.execution.environment.MOSEL_RESTR=0
insight.worker.execution.environment.Path=C:\\Windows\\System32
insight.worker.execution.environment.PYTHON_EXE=C:\\Program Files\\Python39\\python.exe
- To run R via model system commands on Windows, set R_HOME and Path as follows:
insight.worker.execution.environment.R_HOME=<path_to_R>
insight.worker.execution.environment.Path=<path_to_R\\bin>;C:\\Windows\\system32
Example:
insight.worker.execution.environment.R_HOME=C:\\Program Files\\R\\R-4.0.5
insight.worker.execution.environment.Path=C:\\Program Files\\R\\R-4.0.5\\bin;C:\\Windows\\system32
- To run other examples, such as matplotlib, some libraries require the userprofile to leak through to the worker.
insight.worker.execution.environment.USERPROFILE=${USERPROFILE}
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the
property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
solely for internal evaluation purposes to determine whether to purchase a license to the software
described in this documentation, or as otherwise set forth in a written software license agreement
between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
it must conform strictly to the foregoing permitted uses, and no other use is permitted.