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?

 採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 8 月 16 日

0 投票

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

その他の回答 (0 件)

カテゴリ

製品

リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by