From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Fwd: run python from org, draft Date: Fri, 29 Mar 2013 10:47:17 -0600 Message-ID: <87620arw4q.fsf@gmail.com> References: <5154BC51.1050001@easy-emacs.de> <5155A97D.2090907@easy-emacs.de> <87sj3e6y5n.fsf@gmail.com> <878v566up9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULcSy-0002f3-K0 for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 12:47:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULcSq-0004MN-PC for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 12:47:48 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:34086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULcSq-0004Lz-JJ for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 12:47:40 -0400 Received: by mail-pb0-f41.google.com with SMTP id mc8so327001pbc.14 for ; Fri, 29 Mar 2013 09:47:39 -0700 (PDT) In-Reply-To: <878v566up9.fsf@gmail.com> (Eric Schulte's message of "Fri, 29 Mar 2013 10:23:35 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: emacs-orgmode , Gary Oberbrunner --=-=-= Content-Type: text/plain > As we've proven a couple of times now, Python session are broken with > the newest version of Emacs (since the upstream change to an entirely > new python.el implementation). I've just pushed up a fix to ob-python.el so that sessions should now work with the latest version of Emacs. I hope this clears up some of the miss-understandings surrounding ob-python. Here is a quick example usage. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=example.org #+Title: Python Sessions Works with an un-named session. #+begin_src python :session x = 1 + 2 x #+end_src #+RESULTS: : 3 #+begin_src python :session x #+end_src #+RESULTS: : 3 Works with a named session. #+begin_src python :session foo x = 9 x #+end_src #+RESULTS: : 9 #+begin_src python :session foo x #+end_src #+RESULTS: : 9 Notice that the un-named session still has the desired value. #+begin_src python :session x #+end_src #+RESULTS: : 3 --=-=-= Content-Type: text/plain -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--