How can I call 'mwpython' from my preferred Python IDE?

I am attempting to call a Python package that was compiled in MATLAB using Compiler SDK. I want to call this from my preferred IDE. However, I am on MacOS, so I need to run "mwpython" before I can load this package. How can I call this from my Python IDE?

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 16 de Ag. de 2024
"mwpython" is a bash script located at ‘matlabroot/bin/mwpython’. This script sets up the environment for the MCR and launches the default Python configured on your system.
You can execute "mwpython" from your preferred IDE by creating a wrapper script in Python. This script can use a system command to execute the "mwpython" bash script, which can then call your main Python script. 

Más respuestas (0)

Categorías

Productos

Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by