Python

initPythonEnvironment(environmentName, reset)[source]

initialise an interface to a Python environment using CPython3/2 or Anaconda

OPTIONAL INPUT environmentName String denoting the Python environment to establish an interface to.

Fixed options: ‘CPython3’ (default), ‘CPython2’, ‘base’ (Anaconda) Variable Anaconda options: environmentName as in anaconda3/env/environmentName See https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

reset {(0),1}, reset with terminate(pyenv) if true

OUTPUT pyEnvironment Python environment returned by pyenv pySearchPath Python search path (for loading packages)

USAGE [pythonEnvironment,pythonPath]=initPythonEnvironment(‘base’,1) or [pythonEnvironment,pythonPath]=initPythonEnvironment(‘CPython’,1)