From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [BABEL] Output with octave Date: Sat, 24 Jul 2010 00:12:25 +0100 Message-ID: <87iq45x06e.wl%ucecesf@ucl.ac.uk> References: Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Sat_Jul_24_00:12:25_2010-1" Return-path: Received: from [140.186.70.92] (port=37825 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcRPv-0002Wl-Ep for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 19:12:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcRPt-0007ta-PW for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 19:12:35 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:37627) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcRPt-0007sd-La for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 19:12:33 -0400 In-Reply-To: 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: "d.tchin" Cc: emacs-orgmode@gnu.org --Multipart_Sat_Jul_24_00:12:25_2010-1 Content-Type: text/plain; charset=US-ASCII On Fri, 23 Jul 2010 16:59:43 +0000 (UTC), d.tchin wrote: > > Hi > > I use babel to use with octave language. I use it and > define a session so as to have interaction with > octave process. > > It is great to have interaction with octave and > check the action of the code easily. > > I have problem to get output back in org mode file. > I try the following code : > > > --8<---------------cut here---------------start------------->8--- > #+tblname: test > | 1 | 2 | 3 | > > #+source: outtest > #+begin_src octave :session *out* :var vec=test :results output > vecb=vec; > vecb > #+end_src > > --8<---------------cut here---------------end--------------->8--- > > You will get following output > > #+results: outtest > : vec = > : > : 1 2 3 > : octave.exe> vecb = > : > : 1 2 3 > > As you see I get two outputs : vec variable and vecb (with octave prompt). > It is what I expected, excepted vec output. > > With :results value > > --8<---------------cut here---------------start------------->8--- > #+tblname: test > | 1 | 2 | 3 | > > > > #+source: outtest > #+begin_src octave :session *out* :var vec=test :results value > vecb=vec; > vecb > #+end_src > > --8<---------------cut here---------------end--------------->8--- > > I get the following output > > > #+results: outtest > : org_babel_eoe > > In the octave process, I check that it the last intruction. But > what I would expect is to get last instruction vecb. > > I certainly miss something. Could someone help me on this ? I don't think you are missing anything obvious as for the ":results value" case, I get the same thing. In fact, for ":results output", I don't actually get any output! I'm not sure why. I wonder if there is a dependence on the version of Octave? I'm using a fairly old version (3.0.x instead of 3.2.x). : Org-mode version 7.01trans (release_7.01g.24.g6b5cf) : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) : of 2010-05-16 on raven, modified by Debian --Multipart_Sat_Jul_24_00:12:25_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Sat_Jul_24_00:12:25_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Multipart_Sat_Jul_24_00:12:25_2010-1--