From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petro Subject: Re: my emacs hangs when using matplotlib with sessions Date: Sun, 19 Aug 2012 09:34:50 +0200 Message-ID: <87sjbjnxlx.fsf@cica.cica> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T302P-0003jD-Ge for emacs-orgmode@gnu.org; Sun, 19 Aug 2012 03:35:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T302O-0005jH-EH for emacs-orgmode@gnu.org; Sun, 19 Aug 2012 03:35:09 -0400 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:51541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T302O-0005hv-4y for emacs-orgmode@gnu.org; Sun, 19 Aug 2012 03:35:08 -0400 Received: by lahd3 with SMTP id d3so2832175lah.0 for ; Sun, 19 Aug 2012 00:35:06 -0700 (PDT) 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 Hi Giacomo (and everybody) Have you found solution for this problem? Best Petro. > [O] my emacs hangs when using matplotlib with sessions > From: Giacomo M > Subject: [O] my emacs hangs when using matplotlib with sessions > Date: Tue, 3 Jul 2012 19:14:20 +0200 > Dear all, > let say I have these lines: > #+PROPERTY: session *py* > #+PROPERTY: results output > #+BEGIN_SRC python > import matplotlib.pyplot as plt > a=[1,2,3] > #+END_SRC > I execute the code block, no problem > Then I execute this: > #+BEGIN_SRC python > plt.plot(a) > #+END_SRC > boom, emacs hangs > result doesn't change if I write plt.plot(a) directly in the *Python* buffer activated by org-babel-pop-to-session. > if I use pylab (interactive mode of matplotlib), I can see a window with the plot, but then the *Python* shell is unresponsive, and the only thing I can do is just killing it. > Please note that > #+BEGIN_SRC python :session none > import matplotlib.pyplot as plt > a=[1,2,3] > plt.plot(a) > plt.savefig('dummy.png') > #+END_SRC > works perfectly. > It would be wonderful for me to be able to use sessions & matplotlib... > So, thanks a lot for any suggestions! > Giacomo M > Python 2.7.2 win32 > matplotlib 1.1.0 > Emacs 24.1.1 (i386-mingw-nt5.1.2600) > org-mode 7.8.11