From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [babel] org-babel for matlab? Date: Wed, 17 Feb 2010 11:45:14 -0500 Message-ID: <871vgjolph.fsf_-_@stats.ox.ac.uk> References: <38c4de4b1002161216p2b886431t476fc4f71c2dc485@mail.gmail.com> <4b7be517.0d1abc0a.7168.31d4@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nhn1f-0000tb-SV for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 11:45:23 -0500 Received: from [140.186.70.92] (port=44575 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nhn1e-0000sw-5m for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 11:45:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nhn1b-00044Z-AI for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 11:45:22 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:40929) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nhn1b-00044A-1r for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 11:45:19 -0500 In-Reply-To: <4b7be517.0d1abc0a.7168.31d4@mx.google.com> (Darlan Cavalcante Moreira's message of "Wed, 17 Feb 2010 13:45:58 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Darlan Cavalcante Moreira Cc: emacs-orgmode@gnu.org, "stophl..."@yahoo.co.uk Darlan Cavalcante Moreira writes: > This is also important for me (in fact, for octave). For now I used the t= emplate > 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.=20 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-Wi= thin-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 wrote: >>=20 >> Hi list, >>=20 >> 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. >>=20 >> > Hi Christopher, >> > >> > I do not know of anyone working on matlab support for org-babel. =C2= =A0I am >> > attaching a template file which contains instructions for adding suppo= rt >> > for a new language. =C2=A0Depending 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 writes: >> > >> > Dear All, >> > >> > =C2=A0 =C2=A0Has anyone started on a babel mode for matlab? =C2=A0Or i= s anyone else >> > interested >> > in making it happen? =C2=A0Or have a suggestion for a good template to >> > start from (babel-python? babel-R?) =C2=A0And anyone has an estimate o= f how >> > time consuming such a project would be? >> > >> > =C2=A0 =C2=A0I'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 >>=20 >> _______________________________________________ >> 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 >>=20 >>=20 >> -- >> Met vriendelijke groet, >>=20 >> Bob Jansen >>=20 >>=20 >> _______________________________________________ >> 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