%PYENV Change default environment of Python interpreter
%
%   [PYTHONENVIRONMENT] = PYENV returns a matlab.pyclient.PythonEnvironment
%   object, which contains details about the current Python environment.
%
%   [PYTHONENVIRONMENT] = PYENV('Version', VERSION) changes the default
%   Python version on Microsoft Windows platforms. The setting is 
%   persistent across MATLAB sessions. You cannot change the version after 
%   MATLAB loads Python, which happens when you type any py. command. Check 
%   the Status property to determine if Python is loaded. For InProcess
%   execution mode, to change the version of Python which is already loaded, 
%   restart MATLAB, and then call pyenv. For OutOfProcess execution mode,
%   call terminate(pyenv) and then call pyenv again.
%
%   [PYTHONENVIRONMENT] = PYENV('Version', EXECUTABLE) specifies the full
%   path to Python executable. Use on any platform or for repackaged 
%   CPython implementation downloads.
%
%   [PYTHONENVIRONMENT] = PYENV('ExecutionMode', EXECUTIONMODE) changes the
%   execution mode of the Python interpreter. The value can either be
%   'InProcess' or 'OutOfProcess'. The setting is persistent across MATLAB
%   sessions. InProcess execution mode is the default and suggested for
%   performance critical use cases. OutOfProcess execution mode is used for
%   safe execution of Python scripts and libraries and it is suggested for
%   debugging workflows or working with Python libraries which require a
%   different version of a 3rd party library also required by MATLAB.
%
%   [PYTHONENVIRONMENT] = PYENV('Version', EXECUTABLE,...
%                               'ExecutionMode', EXECUTIONMODE)
%   changes the version and the execution mode of the interpreter.

% Copyright 2019-2021 The MathWorks, Inc.
