matlab live script support run Python language directly

18 次查看(过去 30 天)
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.

采纳的回答

cui,xingxing
cui,xingxing 2023-8-24
编辑:cui,xingxing 2024-4-27
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

更多回答(1 个)

Cris LaPierre
Cris LaPierre 2023-8-24
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'

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by