emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BABEL] Output with octave
@ 2010-07-23 16:59 d.tchin
  2010-07-23 23:12 ` Eric S Fraga
  0 siblings, 1 reply; 13+ messages in thread
From: d.tchin @ 2010-07-23 16:59 UTC (permalink / raw)
  To: emacs-orgmode

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 ?

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-08-04 15:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 16:59 [BABEL] Output with octave d.tchin
2010-07-23 23:12 ` Eric S Fraga
2010-07-26 14:25   ` d.tchin
2010-08-01 18:18   ` Dan Davison
2010-08-01 20:07     ` Re: [BABEL] Output with octave + [PATCH] x2 Juan
2010-08-01 20:22       ` Re: [BABEL] Output with octave [PATCH] Juan Pechiar
2010-08-04  4:18         ` Dan Davison
2010-08-04 15:15           ` d.tchin
2010-08-01 22:19       ` [BABEL] Output with octave + [PATCH] x2 Dan Davison
2010-08-01 22:55         ` [BABEL] Octave issues Juan
2010-08-01 23:32           ` Dan Davison
2010-08-02  9:30     ` [BABEL] Output with octave d.tchin
2010-08-04  4:15       ` Dan Davison

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).