From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Reyero Subject: Buffer-wide definitions in org-babel Date: Wed, 7 Oct 2009 16:20:04 +0200 Message-ID: <55bd243d0910070720i3085af58xc30cf14011d6375a@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1161520743==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvXNH-00042E-WC for emacs-orgmode@gnu.org; Wed, 07 Oct 2009 10:20:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvXND-0003ws-BQ for emacs-orgmode@gnu.org; Wed, 07 Oct 2009 10:20:15 -0400 Received: from [199.232.76.173] (port=35221 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvXND-0003wg-0t for emacs-orgmode@gnu.org; Wed, 07 Oct 2009 10:20:11 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]:49718) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvXNC-0004nm-Lr for emacs-orgmode@gnu.org; Wed, 07 Oct 2009 10:20:10 -0400 Received: by fxm1 with SMTP id 1so4245646fxm.31 for ; Wed, 07 Oct 2009 07:20:04 -0700 (PDT) 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: emacs-orgmode@gnu.org --===============1161520743== Content-Type: multipart/alternative; boundary=0016e65b611c02ec800475590b88 --0016e65b611c02ec800475590b88 Content-Type: text/plain; charset=ISO-8859-1 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 --0016e65b611c02ec800475590b88 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Greetings,

I am trying to define buffer-wide initializat= ions in org-babel, so that I can import a python module once and then use i= ts exported symbols in all the code chunks throughout the buffer. =A0Is the= re a way to do it? =A0I have tried all the obvious approaches and none seem= s to work. =A0(My hope was that I could define a :session and then use it i= n every chunk, but python doesn't like it).=A0

I just found out about org-babel, and I am delighted by= its promise. =A0Org-mode has changed the way I work (after a year and a ha= lf I could not live without it) but now I think this is going to be another= bit step.=A0

Many thanks,

--0016e65b611c02ec800475590b88-- --===============1161520743== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1161520743==--