From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: org-babel python :session hangs with matplotlib Date: Tue, 5 Feb 2013 21:16:44 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d042ef753eab39004d504eaf5 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2uZG-0000Tb-UV for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 21:17:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2uZ4-0005Hh-GK for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 21:16:58 -0500 Received: from mail-lb0-f169.google.com ([209.85.217.169]:60662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2uZ4-0005Hc-8F for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 21:16:46 -0500 Received: by mail-lb0-f169.google.com with SMTP id m4so793100lbo.14 for ; Tue, 05 Feb 2013 18:16:44 -0800 (PST) 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: emacs-orgmode@gnu.org --f46d042ef753eab39004d504eaf5 Content-Type: text/plain; charset=ISO-8859-1 Hi everyone, I am using (insert (org-version)) 7.9.3a I am using python-mode 5.2 (more modern versions do not work with :session for me) I am having a problem using matplotlib with python :session. The problem is that this hangs indefinitely. It runs fine as a standalone block. #+BEGIN_SRC python :session import matplotlib.pyplot as plt plt.plot([1,2,3,4,5]) plt.show() #+END_SRC #+RESULTS: Does anyone else have this problem (and if not, what is your python setup?). Thanks, John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu --f46d042ef753eab39004d504eaf5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi everyone,

I am using (insert (org-version)) 7.9.3a
I am using= python-mode 5.2 (more modern versions do not work with
:session for me)=

I am having a problem using matplotlib with python :session. The pr= oblem is that this hangs indefinitely. It runs fine as a standalone block.<= br>
#+BEGIN_SRC python :session
import matplotlib.pyplot as plt

p= lt.plot([1,2,3,4,5])
plt.show()
#+END_SRC

#+RESULTS:

Do= es anyone else have this problem (and if not, what is your python setup?).<= br>
Thanks,

John

-------------------------= ----------
John Kitchin
Associate Professor
Doherty Hall A207F
= Department of Chemical Engineering
Carnegie Mellon University
Pittsbu= rgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

--f46d042ef753eab39004d504eaf5--