emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giacomo M <jackjackk@gmail.com>
To: emacs-orgmode@gnu.org
Subject: my emacs hangs when using matplotlib with sessions
Date: Tue, 3 Jul 2012 19:14:20 +0200	[thread overview]
Message-ID: <CA+GKSr4-FgJqgVKQjMpHZ3WP=zYCZXEu1jjWWBRs_+D4Q-=rrQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 947 bytes --]

Dear all,
let say I have these lines:

#+PROPERTY: session *py*
#+PROPERTY: results output

#+BEGIN_SRC python
import matplotlib.pyplot as plt

I execute the code block, no problem
Then I execute this:

#+BEGIN_SRC python

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

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

[-- Attachment #2: Type: text/html, Size: 2963 bytes --]

             reply	other threads:[~2012-07-03 17:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-03 17:14 Giacomo M [this message]
2012-08-19  7:34 my emacs hangs when using matplotlib with sessions Petro

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:

  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='CA+GKSr4-FgJqgVKQjMpHZ3WP=zYCZXEu1jjWWBRs_+D4Q-=rrQ@mail.gmail.com' \
    --to=jackjackk@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).