Skip to content

Remote Eshell and org babel support #50

Description

@warnerwarner

I wanted a way to be able to visualise plots generated on a remote MATLAB session. I followed the instructions to get MATLAB running on a remote server via ssh and Tramp, and that seems to be working correctly. However, as the MATLAB buffer can't directly show plots I tried to set it up in conjunction with Org-babel, but I'm getting errors in MATLAB because org-babel is trying to send it temporal files and change directories which don't align with the remote server file path.

For example, if I open a remote session and then write org-babel block

#+begin_src matlab :session *MATLAB*
disp(1)
#+end_src

I get

#+RESULTS:
: org_babel_eoe

and in the matlab buffer

`>>if ~exist('ans', 'var') ans=''; end; orgTmpFile = '/tmp/matlab-OkqaC4'; writematrix(ans, [orgTmpFile, '.txt'], 'Delimiter', 'tab'); movefile([orgTmpFile, '.txt'], orgTmpFile); clear orgTmpFile;

'org_babel_eoe'`

I'm guessing this might be more of a org-babel problem, but is there any way to visualise plots from a remote matlab instance into emacs? Either view the MATLAB buffer or org-babel?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions