Getting around using "mwpython" on arm based Macs

  • MATLAB R2023b not supports ARM. I am creating Python packages from MATLAB code.
  • However, when using these packages in Python scripts, it appears necessary to execute them via 'mwpython'. This is a shell script that sets environment variables and invokes the script using '/Applications/MATLAB_R2023b.app/bin/maca64/mwpython3.11.app/Contents/MacOS/mwpython3.11.app',
  • Reason seems to be macOS restricts calling graphics code from the main thread.
If the Python scripts do not involve graphic code, is it possible to utilize the default Python interpreter instead of 'mwpython'? Are there alternatives to bypassing the use of 'mwpython'?"

Answers (0)

Asked:

on 23 Feb 2024

Edited:

on 23 Feb 2024

Community Treasure Hunt

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

Start Hunting!