From: Piter_ <x.piter@gmail.com>
To: Rainer M Krug <r.m.krug@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: how send babel source code to shell?
Date: Thu, 3 Mar 2011 14:58:55 +0100 [thread overview]
Message-ID: <AANLkTim357ng6WF0Oqj4-sXKf-eHxz8sjo82octyaiJJ@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinsrqZkTmHTxWPDhdwCQQ9phjowVCkkbgYxYwrc@mail.gmail.com>
Hi.
unfortunately it does not work.
It does not recognize "noweb blocks"
it sends it literally to the shell
<<heterogeneous_fit>>
Error: Unexpected MATLAB operator.
Any advice to handle it?
Thanks.
Petro
On Thu, Mar 3, 2011 at 2:33 PM, Rainer M Krug <r.m.krug@gmail.com> wrote:
> On Thu, Mar 3, 2011 at 2:20 PM, Piter_ <x.piter@gmail.com> 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
> DO 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: +27 - (0)83 9479 042
> Fax: +27 - (0)86 516 2782
> Fax: +49 - (0)321 2125 2244
> email: Rainer@krugs.de
>
> Skype: RMkrug
> Google: 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
next prev parent reply other threads:[~2011-03-03 13:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 13:20 how send babel source code to shell? Piter_
2011-03-03 13:33 ` Rainer M Krug
2011-03-03 13:58 ` Piter_ [this message]
2011-03-03 14:04 ` Eric Schulte
2011-03-03 15:31 ` Piter_
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTim357ng6WF0Oqj4-sXKf-eHxz8sjo82octyaiJJ@mail.gmail.com \
--to=x.piter@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=r.m.krug@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.