emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: my emacs hangs when using matplotlib with sessions
@ 2012-08-19  7:34 Petro
  0 siblings, 0 replies; 2+ messages in thread
From: Petro @ 2012-08-19  7:34 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* my emacs hangs when using matplotlib with sessions
@ 2012-07-03 17:14 Giacomo M
  0 siblings, 0 replies; 2+ messages in thread
From: Giacomo M @ 2012-07-03 17:14 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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
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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-19  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-19  7:34 my emacs hangs when using matplotlib with sessions Petro
  -- strict thread matches above, loose matches on Subject: below --
2012-07-03 17:14 Giacomo M

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