emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Darlan Cavalcante Moreira <darcamo@gmail.com>
Cc: emacs-orgmode@gnu.org, "stophl..."@yahoo.co.uk
Subject: Re: [babel] org-babel for matlab?
Date: Wed, 17 Feb 2010 11:45:14 -0500	[thread overview]
Message-ID: <871vgjolph.fsf_-_@stats.ox.ac.uk> (raw)
In-Reply-To: <4b7be517.0d1abc0a.7168.31d4@mx.google.com> (Darlan Cavalcante Moreira's message of "Wed, 17 Feb 2010 13:45:58 +0100")

Darlan Cavalcante Moreira <darcamo@gmail.com> writes:

> This is also important for me (in fact, for octave). For now I used the template
> file and I can tangle the code correctly, but since I didn't implement any
> function for code execution tangling is all I've got.
>
> - Darlan

I was also going to suggest that if someone did this, they might want to
try to address octave at the same time. 

Darlan -- would you like to share your initial version of octave
support? If we get it onto a git repository then we can all have a look
and maybe make a bit of progress. Either post it, or contact me off-line
for the admin details for http://repo.or.cz/w/org-mode/babel.git.

I don't use either language but here are some comments about the various
tasks and guesses about how hard they would be.

If someone could comment on the extent to which differences between
matlab and octave (running as command-line external processes) are going
to make shared org-babel support problematic that would probably be
useful.

- external process :results output
  Running octave as an external process under linux/OS X and collecting
  stdout shouldn't be too hard. Presumably same for matlab? Windows
  support: unavailable for matlab, but probably feasible for octave.

- external process :results value
  This basically involves (in matlab/octave) writing vectors and arrays
  to a tabular file (and then using existing code to import the org
  table, but this bit can be taken from the files for another language)

- :session
  At first glance it looks like there's an inferior octave mode that
  should be suitable for use
  with :session. Darlan -- do you have experience with this?

  http://www.gnu.org/software/octave/doc/interpreter/Running-Octave-From-Within-Emacs.html#Running-Octave-From-Within-Emacs

- Matlab :session on Windows
  Getting org-babel to work with the MatLab "EmacsLink" module may well be
  possible, but I would only be able to help very superficially.

Dan


>
> At Tue, 16 Feb 2010 21:16:44 +0100,
> Bob Jansen <bobjansen@gmail.com> wrote:
>> 
>> Hi list,
>> 
>> Has any progress been made on this? I'm fairly new to org-mode and
>> org-babel but this sounds to me like a very useful feature.
>> 
>> > Hi Christopher,
>> >
>> > I do not know of anyone working on matlab support for org-babel.  I am
>> > attaching a template file which contains instructions for adding support
>> > for a new language.  Depending on your level of familiarity with elisp
>> > it could take anywhere from a couple of hours to a couple of days.
>> > We're still debugging some of the original language specific files :)
>> >
>> > Best of Luck! -- Eric
>> >
>> >
>> > Attachment: org-babel-template.el
>> > Description: application/emacs-lisp
>> >
>> > Christopher Long <stophl...@yahoo.co.uk> writes:
>> >
>> > Dear All,
>> >
>> >    Has anyone started on a babel mode for matlab?  Or is anyone else
>> > interested
>> > in making it happen?  Or have a suggestion for a good template to
>> > start from (babel-python? babel-R?)  And anyone has an estimate of how
>> > time consuming such a project would be?
>> >
>> >    I'd like it to work on Windows and there isn't a console mode of Matlab
>> > on windows, but you can evaluate code with EmacsLink and likely direct
>> > all output to temporary files.
>> > (I know EmacsLink was dropped in R2009a, but some of us are avoiding
>> > upgrading
>> > and hoping that Matlab will return EmacsLink in the future.)
>> >
>> >
>> > Thanks,
>> >
>> > Stoph
>> >
>> >
>> > _______________________________________________
>> > Emacs-orgmode mailing list
>> > Please use `Reply All' to send replies to the list.
>> > Emacs-orgmode@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>> 
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>> 
>> 
>> --
>> Met vriendelijke groet,
>> 
>> Bob Jansen
>> 
>> 
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-02-17 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-16 20:16 org-babel for matlab? Bob Jansen
2010-02-17 12:45 ` Darlan Cavalcante Moreira
2010-02-17 16:45   ` Dan Davison [this message]
2010-02-18 14:41     ` [babel] " Darlan Cavalcante Moreira
2010-03-05  4:00       ` Christopher Long

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871vgjolph.fsf_-_@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc="stophl..."@yahoo.co.uk \
    --cc=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).