Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-06-02 Thread Dror Atariah
I already tried three version: macports, build from sources and the bundled version. All have this problem. So, I guess it has to do with the way emacs interacts with my Python, but I don't know how to debug it. Is there no one here that is a python/orgmode ninja that can give me a hand here? Tha

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-06-02 Thread Ken Mankoff
Switch to an emacs that doesn't have this bug on your system. Try Homebrew-installed versions (although I know you aren't supposed to mix brew and macports, and I think you use macports). -k. On 2015-06-02 at 01:49, Dror Atariah wrote: > No ideas? Please, I really don't know how to tackle t

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-06-01 Thread Dror Atariah
No ideas? Please, I really don't know how to tackle this. Thanks. -- Dror Atariah, PhD Sent from mobile; excuse my brevity. On May 26, 2015 8:39 PM, "Dror Atariah" wrote: > > > On Tue, May 26, 2015 at 4:02 PM, Ken Mankoff wrote: > >> >> >> Where you see everything printed twice. I notice that

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Dror Atariah
On Tue, May 26, 2015 at 4:02 PM, Ken Mankoff wrote: > > > Where you see everything printed twice. I notice that in addition, you have > > > r/folders/kz/1c2cxn1x60n_t5p2j1p02b18gn/T/py6499_X0''', 'exec')); > > at the top of your buffer, and I do not. I think the "exec" might be > causing ever

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Dror Atariah
On Tue, May 26, 2015 at 4:02 PM, Ken Mankoff wrote: > > On 2015-05-26 at 09:26, Dror Atariah wrote: > >> #+BEGIN_SRC python :session with_matplotlib :results file :exports both > >> import matplotlib > >> matplotlib.use('Agg') > >> import matplotlib.pyplot as plt > >> fig=plt.figure(figsize=(3,2

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Ken Mankoff
On 2015-05-26 at 09:18, Dror Atariah wrote: > On Tue, May 26, 2015 at 3:49 AM, Ken Mankoff wrote: >> On 2015-05-25 at 14:22, Dror Atariah wrote: >> > Following is the section of my =init.el= that deals with org-mode (if you >> > need more, let me know): >> >> If the bug exists with "emacs -Q",

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Ken Mankoff
On 2015-05-26 at 09:26, Dror Atariah wrote: >> #+BEGIN_SRC python :session with_matplotlib :results file :exports both >> import matplotlib >> matplotlib.use('Agg') >> import matplotlib.pyplot as plt >> fig=plt.figure(figsize=(3,2))# 4 >> plt.plot([1,3,2])

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Dror Atariah
On Mon, May 25, 2015 at 8:30 PM, John Kitchin wrote: > With emacs -Q, and this org file: > > #+BEGIN_SRC emacs-lisp > (org-babel-do-load-languages > 'org-babel-load-languages > '((emacs-lisp . t) >(python . t))) > #+END_SRC > > #+RESULTS: > > #+BEGIN_SRC python :session with_matplotlib :res

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Dror Atariah
On Tue, May 26, 2015 at 3:15 PM, Ken Mankoff wrote: > > On 2015-05-26 at 09:11, Dror Atariah wrote: > > I use emacs that come from MacPorts, so for -Q option I start it using: > > /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -Q > > Consider using different compilation options, and/or a

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Dror Atariah
On Tue, May 26, 2015 at 3:49 AM, Ken Mankoff wrote: > > Nick Dokos removed from Cc. > > On 2015-05-25 at 14:22, Dror Atariah wrote: > > I tried to evaluate the problematic file using =emacs -Q= and the problem > > is the same. > > Sorry I can't help much. It works on my system. > > The only diff

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Ken Mankoff
On 2015-05-26 at 09:11, Dror Atariah wrote: > I use emacs that come from MacPorts, so for -Q option I start it using: > /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -Q Consider using different compilation options, and/or a different Emacs.app package. It seems like that might be the ea

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-26 Thread Dror Atariah
On Mon, May 25, 2015 at 8:30 PM, John Kitchin wrote: > With emacs -Q, and this org file: > > #+BEGIN_SRC emacs-lisp > (org-babel-do-load-languages > 'org-babel-load-languages > '((emacs-lisp . t) >(python . t))) > #+END_SRC > > #+RESULTS: > > #+BEGIN_SRC python :session with_matplotlib :res

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-25 Thread Ken Mankoff
Nick Dokos removed from Cc. On 2015-05-25 at 14:22, Dror Atariah wrote: > I tried to evaluate the problematic file using =emacs -Q= and the problem > is the same. Sorry I can't help much. It works on my system. The only difference I see is my python version: #+BEGIN_SRC python :session backgr

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-25 Thread John Kitchin
With emacs -Q, and this org file: #+BEGIN_SRC emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (python . t))) #+END_SRC #+RESULTS: #+BEGIN_SRC python :session with_matplotlib :results file :exports both import matplotlib matplotlib.use('Agg') import matpl

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-25 Thread Dror Atariah
On Mon, May 25, 2015 at 7:29 PM, Ken Mankoff wrote: > > On 2015-05-25 at 13:25, Dror Atariah wrote: > > I am sorry for reposting, but I'm still in the dark. Am I the only one > who > > experience this kind of issue? > > Don't know. > > > Did someone managed to reproduce the problem? > > I could

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-25 Thread Ken Mankoff
On 2015-05-25 at 13:25, Dror Atariah wrote: > I am sorry for reposting, but I'm still in the dark. Am I the only one who > experience this kind of issue? Don't know. > Did someone managed to reproduce the problem? I could not reproduce it. > Does anyone see this message? :) Yes. I'm on Mac

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-25 Thread Dror Atariah
I am sorry for reposting, but I'm still in the dark. Am I the only one who experience this kind of issue? Did someone managed to reproduce the problem? Does anyone see this message? :) On Sat, May 23, 2015 at 8:49 PM, Dror Atariah wrote: > I am still helpless here. Any idea how to debug the prob

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-23 Thread Dror Atariah
I am still helpless here. Any idea how to debug the problem? I would be happy to provide any kind of help, but I just cannot do it myself. Further findings: 1) I don't think that matplotlib changes Python's '_', since the tmp file that contains the content of '_' is correct. 2) Somehow, emacs/orgm

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-05 Thread Dror Atariah
Obviously, I have the directory in place, and the file is actually saved properly in it. The version is use is: Org-mode version 8.2.10 (8.2.10-40-gc763fa-elpaplus @ /Users/drorata/.emacs.d/elpa/org-plus-contrib-20150504/) Finally, here is the output that I have in the python interactive session:

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-02 Thread Nick Dokos
Dror Atariah writes: > How can I solve this problem? I should have added: ... after I create the "images" directory. I don't think the savefig() can do that.

Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-02 Thread Nick Dokos
Dror Atariah writes: > Consider the following example (from the documentation): > > ---8<---8<---8<---8<---8<---8<---8<---8<---8<--- > #+begin_src python :session :results file > import matplotlib > matplotlib.use('Agg') > import matplotlib.pyplot as plt >

[O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-02 Thread Dror Atariah
Consider the following example (from the documentation): ---8<---8<---8<---8<---8<---8<---8<---8<---8<--- #+begin_src python :session :results file import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig=plt.figure(figsize=(3,2)) plt.plot