mathworks / mathworks/Emacs-MATLAB-Mode
Remote Eshell and org babel support
Nobody has claimed this yet.
- Dominant language
- Emacs Lisp
- Stars
- 26
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the remote MATLAB session over SSH and Tramp with the shown Org-babel block. Investigate how Org-babel creates temporary files and changes directories for the session; done means remote MATLAB output and plots can be visualised from Emacs without path errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs-lisp, matlab
- Domain
- desktop, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100