mathworks / MATLAB-extension-for-vscode

This extension provides support for editing MATLAB® code in Visual Studio® Code and includes features such as syntax highlighting, code analysis, navigation support, and more.
https://marketplace.visualstudio.com/items?itemName=MathWorks.language-matlab
MIT License
244 stars 16 forks source link

Support access to a remote MATLAB #106

Open mikecroucher opened 8 months ago

mikecroucher commented 8 months ago

Is your feature request related to a problem? Please describe. Consider a user who has MATLAB installed on a remote resource (e.g. a cloud sever or HPC cluster) and VS Code installed locally. They want to use the remote MATLAB from the local VSCode. An example of such a request is at https://www.mathworks.com/matlabcentral/discussions/tips/848231-run-matlab-code-from-visual-studio-code/2584941#reply_2584941

Quoted here:

I tried to use the "desktop" command in the MATLAB terminal in VSC, but the following error is reported directly:
>> desktop
Error using desktop
The Desktop is not available in this configuration
Error in desktop.
jecs commented 6 months ago

I have had some success with the ssh extension.

bkossows commented 3 months ago

Hi, can You tell more about setting up Remote SSH & Matlab in VSC? I can open matlab with GUI from VSCode Terminal but not from the MATLAB prompt:

desktop
Error using desktop
The Desktop is not available in this configuration

Error in desktop

and the same with plot(2,2), which does not show up.

dklilley commented 3 months ago

Hi @bkossows , unfortunately, workflows which open a separate window (including figures and the MATLAB Desktop) are not currently supported. This is something which is on our radar.

jecs commented 3 months ago

@bkossows Ah, I was using MATLAB with no GUI features using the SSH extension.

Nice to hear that it's on Mathworks's radar.