Python Client Programming
The MATLAB®
Production Server™
Python client API enables developers to evaluate MATLAB functions on remote servers. The API lets you pass scalar values
to a MATLAB function using native Python types. When working with arrays, you need to use the MATLAB array types provided in the matlab
package. For
information on using MATLAB arrays in Python, see matlab Python Module.
For an overview of how to create client programs, see Create a MATLAB Production Server Python Client.
For a complete example of a client implementation, see Create a Python Client.
Note
Starting in R2022b, the Python client library no longer supports Python 2.7.
Classes
matlab.production_server.client.MWHttpClient | Python object encapsulating a connection to a MATLAB Production Server instance |
Topics
Create Applications
- Create a MATLAB Production Server Python Client
Call a MATLAB function deployed to MATLAB Production Server from a Python application. - Install the MATLAB Production Server Python Client
Install the packages required to use the Python client. - Bond Pricing Tool for MATLAB Production Server Python Client
Create a bond pricing app in Python that calls a MATLAB function deployed to MATLAB Production Server. - Create a Python Client
Learn how to call a MATLAB function deployed to MATLAB Production Server from a Python application. - Create Client Connection
Create a connection from a Python client to a MATLAB Production Server instance. - Invoke Packaged MATLAB Functions
Ways to call a deployed MATLAB function using the Python client API.
Data Conversion
- Pass Data Between MATLAB Production Server and Python
Learn how MATLAB Production Server converts data between Python and MATLAB data types. - matlab Python Module
Use thematlab
Python module to create MATLAB numeric types as Python variables. You can use these classes to pass MATLAB arrays between Python and MATLAB. - Use MATLAB Arrays in Python
This example shows how to use MATLAB arrays in Python.
Troubleshooting
- Handle Function Processing Errors
Catch and process errors that the server returns.