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?

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 16 Aug. 2024

0 Stimmen

"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. 

Weitere Antworten (0)

Kategorien

Produkte

Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by