matlab live script support run Python language directly

18 Ansichten (letzte 30 Tage)
cui,xingxing
cui,xingxing am 24 Aug. 2023
Bearbeitet: cui,xingxing am 27 Apr. 2024
Luckily Mathworks has started to focus on the interaction between MATLAB and python in the last few years, rather than comparing their strengths and weaknesses, e.g. the github open-source board "matlab+python" in order to support Python users, and the documentation has been updated a lot.
But what I would like to see is to use matlab live script(mlx file) to write python source code directly (code highlighting, smart completion hints, help files, etc.), which has the advantage of being able to debug and run through the python code in a unified MATLAB environment instead of debugging and running through the python code in some python IDE environment and then passing it through pyrun , pyrunfile and other functions indirectly called.

Akzeptierte Antwort

cui,xingxing
cui,xingxing am 24 Aug. 2023
Bearbeitet: cui,xingxing am 27 Apr. 2024
I now believe that the above "new feature" cannot be integrated into future versions of MATLAB because it does not follow the logic of the MATLAB design philosophy. If you can write/run python directly in mlx files, MATLAB can actually be used as a python IDE, and even then, if you change it to C/C++ and provide compiler paths, it will be a C/C++ IDE with a few frills, but for so many years, MATLAB has been an IDE only for itself.
-------------------------Off-topic interlude, 2024-------------------------------
I am currently looking for a job in the field of CV algorithm development, based in Shenzhen, Guangdong, China,or a remote support position. I would be very grateful if anyone is willing to offer me a job or make a recommendation. My preliminary resume can be found at: https://cuixing158.github.io/about/ . Thank you!
Email: cuixingxing150@gmail.com

Weitere Antworten (1)

Cris LaPierre
Cris LaPierre am 24 Aug. 2023
This is a community help forum. The best place to send suggestions to MathWorks is here:
  • Select 'Create Service Request'
  • Then select 'Technical Support: Installation, product help, bugs, suggestions, documentation errors, outages'

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by