Main Content

PythonPackage Integration

Integrate compiled MATLAB®functions into Python®applications

MATLAB Compiler SDK™provides Python methods to initializeMATLAB Runtime, invoke compiled MATLAB functions, and manage data that is passed between the Python code and MATLAB Runtime.

For a list of compatible Python versions, seeMATLABSupported Interfaces to Other Languages.

You cannot package MATLAB code that uses the MATLAB Python interface.

Functions

expand all

compiler.build.pythonPackage CreatePythonpackage for deployment outsideMATLAB
compiler.build.PythonPackageOptions Options for buildingPythonpackages
compiler.package.installer Create an installer for files generated byMATLABCompiler
compiler.package.InstallerOptions Options for creatingMATLABCompilerpackage installers
myDeployedModule.initialize Pythonmodule to initialize package and return a handle
myDeployedModule.initialize_runtime Pythonmodule to initializeMATLABRuntime with a list of startup options
myDeployedModule.wait_for_figures_to_close Pythonmodule to wait for all graphical figures to close before continuing
myDeployedModule.terminate Pythonmodule to close a package
mwpython Start aPythonsession using aMATLABCompiler SDKPythonpackage onMac OS X

Topics

Requirements and Highlights

Create and Integrate with Python

Sample Applications

Data Conversion