From: Juan Reyero <joanmg@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Buffer-wide definitions in org-babel
Date: Wed, 7 Oct 2009 16:20:04 +0200 [thread overview]
Message-ID: <55bd243d0910070720i3085af58xc30cf14011d6375a@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 658 bytes --]
Greetings,
I am trying to define buffer-wide initializations in org-babel, so that I
can import a python module once and then use its exported symbols in all the
code chunks throughout the buffer. Is there a way to do it? I have tried
all the obvious approaches and none seems to work. (My hope was that I
could define a :session and then use it in every chunk, but python doesn't
like it).
I just found out about org-babel, and I am delighted by its promise.
Org-mode has changed the way I work (after a year and a half I could not
live without it) but now I think this is going to be another bit step.
Many thanks,
jm
--
http://juanreyero.com/blog
[-- Attachment #1.2: Type: text/html, Size: 823 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
next reply other threads:[~2009-10-07 14:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 14:20 Juan Reyero [this message]
2009-10-07 18:48 ` Buffer-wide definitions in org-babel Eric Schulte
2009-10-07 19:17 ` Eric Schulte
2009-10-08 11:16 ` Juan Reyero
2009-10-08 9:22 ` Juan Reyero
2009-10-08 14:11 ` Dan Davison
2009-10-09 14:53 ` Juan Reyero
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=55bd243d0910070720i3085af58xc30cf14011d6375a@mail.gmail.com \
--to=joanmg@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).