From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: how send babel source code to shell? Date: Thu, 03 Mar 2011 07:04:12 -0700 Message-ID: <87ei6opag3.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56738 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvAPu-0000fL-KW for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 10:26:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvAPp-0005k7-LQ for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 10:26:14 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:42099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv98e-0005w4-La for emacs-orgmode@gnu.org; Thu, 03 Mar 2011 09:04:20 -0500 Received: by yxt33 with SMTP id 33so476441yxt.0 for ; Thu, 03 Mar 2011 06:04:19 -0800 (PST) In-Reply-To: (Piter's message of "Thu, 3 Mar 2011 14:58:55 +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: Piter_ Cc: emacs-orgmode@gnu.org, Rainer M Krug You will need to combine multiple header arguments, try something like #+begin_src python :session *py* :noweb yes <> #+end_src Please see this chapter of the manual for more information on code block syntax and header arguments. http://orgmode.org/manual/Working-With-Source-Code.html Best -- Eric Piter_ writes: > Hi. > unfortunately it does not work. > It does not recognize "noweb blocks" > it sends it literally to the shell > <> > Error: Unexpected MATLAB operator. > Any advice to handle it? > Thanks. > Petro > > > > > > > > On Thu, Mar 3, 2011 at 2:33 PM, Rainer M Krug wrote: >> On Thu, Mar 3, 2011 at 2:20 PM, Piter_ wrote: >>> Hi all. >>> I have a source code (in matlab or python). It cosists of two blocks >>> (using noweb). >>> I can evaluate it. >>> But I want to send it to matlab or python shell. And inspect the >>> result there (variable values and so on). >>> Can I do it? >> >> Yes - use the :session header argument. >> >> Although I have never used in matlab or python ( I used in in R and >> sh), it should work there as well. >> >> e.g: >> >> #+begin_src python :session WHATEVER >> =C2=A0DO SOMETHING >> #+end_src >> >> Cheers, >> >> Rainer >> >>> Thanks. >>> Petro. >>> >>> -- >>> 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 >>> >> >> >> >> -- >> NEW GERMAN FAX NUMBER!!! >> >> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation >> Biology, UCT), Dipl. Phys. (Germany) >> >> Centre of Excellence for Invasion Biology >> Natural Sciences Building >> Office Suite 2039 >> Stellenbosch University >> Main Campus, Merriman Avenue >> Stellenbosch >> South Africa >> >> Cell:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 +27 - (0)83 9479 042 >> Fax:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 +27 - (0)86 516 2782 >> Fax:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 +49 - (0)321 2125 2244 >> email:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Rainer@krugs.de >> >> Skype:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 RMkrug >> Google:=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 R.M.Krug@gmail.com >> -- 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