From: "Thomas S. Dye" <tsd@tsdye.com>
To: andrea Crotti <andrea.crotti.0@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re:[babel] Re: What is output for org-babel?
Date: Fri, 6 Nov 2009 06:15:21 -1000 [thread overview]
Message-ID: <CFCAB195-66E2-48A6-A3CF-0837F16C0809@tsdye.com> (raw)
In-Reply-To: <loom.20091106T131050-282@post.gmane.org>
On Nov 6, 2009, at 2:13 AM, andrea Crotti wrote:
> Darlan Cavalcante Moreira <darcamo <at> gmail.com> writes:
>
>>
>> However, if the code is sent to the python interpreter as it is,
>> then it
>> bugs me
>> why "import os; os.listdir(os.getcwd())" didn't work.
>
> I tried to look at the code of org-babel-python
> but it's a bit too complicated to understand how my body
> is manipulated...
>
> For the second question I made, it would be even
> better to have a mechanism that allows to insert
> logical parts of another buffer in my org-mode file.
>
> Something like
>
> #+INCLUDE file.hs::fun_def
>
> Where fun_def is the definition of a function.
> programming modes know how to split this kind of things, so
> also org-mode could now, right?
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Hi Andrea,
If I understand your question correctly, there might be several ways
to achieve this with existing org-babel functions. Here are two that
might work.
1) Establish a :session and make fun_def available there, or
2) Explore the possibilities offered by Library of Babel. This is
something I haven't explored yet, but it appears to be designed for
the problem you're describing.
HTH,
Tom
next prev parent reply other threads:[~2009-11-06 16:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-05 11:17 What is output for org-babel? andrea Crotti
2009-11-05 14:26 ` Darlan Cavalcante Moreira
2009-11-06 12:13 ` andrea Crotti
2009-11-06 12:17 ` Carsten Dominik
2009-11-06 16:15 ` Thomas S. Dye [this message]
2009-11-08 20:20 ` Dan Davison
2009-11-12 0:25 ` Dan Davison
2009-11-08 15:05 ` "Martin G. Skjæveland"
2009-11-08 15:19 ` "Martin G. Skjæveland"
2009-11-08 19:48 ` Dan Davison
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CFCAB195-66E2-48A6-A3CF-0837F16C0809@tsdye.com \
--to=tsd@tsdye.com \
--cc=andrea.crotti.0@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 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).