From mboxrd@z Thu Jan 1 00:00:00 1970 From: d.tchin Subject: [BABEL] Output with octave Date: Fri, 23 Jul 2010 16:59:43 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52226 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcLbI-0003IH-CV for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 12:59:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcLbH-0005Yn-3h for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 12:59:56 -0400 Received: from lo.gmane.org ([80.91.229.12]:59446) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcLbG-0005Ya-Sd for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 12:59:55 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OcLbD-0003zB-LJ for emacs-orgmode@gnu.org; Fri, 23 Jul 2010 18:59:51 +0200 Received: from APuteaux-754-1-12-241.w90-44.abo.wanadoo.fr ([90.44.55.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Jul 2010 18:59:51 +0200 Received: from d.tchin by APuteaux-754-1-12-241.w90-44.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Jul 2010 18:59:51 +0200 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: emacs-orgmode@gnu.org 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 ?