emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Petro <khoroshyy@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: my emacs hangs when using matplotlib with sessions
Date: Sun, 19 Aug 2012 09:34:50 +0200	[thread overview]
Message-ID: <87sjbjnxlx.fsf@cica.cica> (raw)

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

             reply	other threads:[~2012-08-19  7:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-19  7:34 Petro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-03 17:14 Giacomo M

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=87sjbjnxlx.fsf@cica.cica \
    --to=khoroshyy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: my emacs hangs when using matplotlib with sessions' \
    /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

Code repositories for project(s) associated with this 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).