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개)

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품

릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by