matlab live script support run Python language directly

18 vues (au cours des 30 derniers jours)
cui,xingxing
cui,xingxing le 24 Août 2023
Modifié(e) : cui,xingxing le 27 Avr 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.

Réponse acceptée

cui,xingxing
cui,xingxing le 24 Août 2023
Modifié(e) : cui,xingxing le 27 Avr 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

Plus de réponses (1)

Cris LaPierre
Cris LaPierre le 24 Août 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'

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by