apommel / vscode-matlab-interactive-terminal

VS Code extension allowing for an interactive Matlab terminal and launching of scripts through Matlab Engine for Python
MIT License
46 stars 9 forks source link

Its not letting me enter inputs #43

Closed Abs-30 closed 2 years ago

somso2e commented 2 years ago

This seems to be not supported by the MATLAB Python API itself and I doubt much can be done about it.

Except maybe giving an error to the user when any of these commands are used??

https://in.mathworks.com/help/matlab/matlab_external/user-input-not-supported.html

7vik03 commented 2 years ago

@somso2e So, is that why once the MATLAB terminal takes my input, it just gets stuck and doesn't give me any output?

Abs-30 commented 2 years ago

This seems to be not supported by the MATLAB Python API itself and I doubt much can be done about it.

Except maybe giving an error to the user when any of these commands are used??

https://in.mathworks.com/help/matlab/matlab_external/user-input-not-supported.html

Thats the issue😊👍

apommel commented 2 years ago

Unfortunately, yes, not much can be done as the extension depends on the MATLAB Engine for Python. Implementing an error on the keyword sounds doable at first, but it would actually require to implement some kind of basic syntax parsing at the extension level for it to work reliably. It is not something I built the code for so I'd rather not delve into it. I can only advise you to not use input and other similar functions.

7vik03 commented 2 years ago

@apommel Got it.