PythonEnvironment
Python environment information
Description
PythonEnvironment
objects contain information about the settings and status of the Python®interpreter. MATLAB®communicates with the interpreter when you call apy.
command. Python environment information is persistent across different MATLAB sessions.
Creation
To create aPythonEnvironment
object or change the settings, callpyenv
. The Python interpreter is loaded when you call a Python command in thepy
package. You cannot change the interpreter after MATLAB loads Python. To change the interpreter, restart MATLAB, and then callpyenv
.
Properties
Object Functions
terminate |
Terminate process associated withPythoninterpreter |
Examples
Limitations
Saving (serializing)
PythonEnvironment
objects into a MAT-file is not supported.