mwpython
R2026bStart a Python session using a MATLAB Compiler SDK Python package on macOS
Syntax
Description
mwpython [-verbose] [ Starts an interactive Python® session on macOS.py_args]
[-mlstartup opt[,opt]]
Note
On macOS, you must use the mwpython script instead of
python. For example, mwpython
makesqrSample1.py.
The mwpython script is located in the
folder, where
matlabroot/binmatlabroot is the location of your MATLAB® or MATLAB Runtime installation.
mwpython [-verbose] [
Starts a Python session on macOS that executes a Python script.py_args]
[-mlstartup opt[,opt]] python_scriptname
Examples
Execute a Python Script on macOS in Verbose Mode
mwpython -verbose myfile.py
Execute a Python Module on macOS with Arguments
mwpython -m mymod arg1 arg2
Input Arguments
Version History
Introduced in R2015b