MATLAB-extension-for-vscode icon indicating copy to clipboard operation
MATLAB-extension-for-vscode copied to clipboard

Support access to a remote MATLAB

Open mikecroucher opened this issue 11 months ago • 4 comments

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.

mikecroucher avatar Mar 10 '24 22:03 mikecroucher

I have had some success with the ssh extension.

jecs avatar May 23 '24 14:05 jecs

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.

bkossows avatar Aug 05 '24 12:08 bkossows

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.

dklilley avatar Aug 05 '24 13:08 dklilley

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

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

jecs avatar Aug 08 '24 13:08 jecs