From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dror Atariah Subject: Re: [Orgmode] Unable to capture the file name generated using matplotlib Date: Tue, 26 May 2015 15:11:44 +0200 Message-ID: References: <87wq0qsy4o.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b4512f23e0f490516fbde6d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxEe5-0002td-1b for emacs-orgmode@gnu.org; Tue, 26 May 2015 09:11:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxEe1-0002ib-VW for emacs-orgmode@gnu.org; Tue, 26 May 2015 09:11:48 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:33562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxEe1-0002i4-H8 for emacs-orgmode@gnu.org; Tue, 26 May 2015 09:11:45 -0400 Received: by wgez8 with SMTP id z8so96809495wge.0 for ; Tue, 26 May 2015 06:11:45 -0700 (PDT) In-Reply-To: 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: John Kitchin Cc: Nick Dokos , "emacs-orgmode@gnu.org" , Ken Mankoff --047d7b4512f23e0f490516fbde6d Content-Type: text/plain; charset=UTF-8 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 :results file :exports both > import matplotlib > matplotlib.use('Agg') > import matplotlib.pyplot as plt > fig=plt.figure(figsize=(3,2)) > plt.plot([1,3,2]) > plt.savefig('myfig.png') > 'myfig.png' > #+END_SRC > > #+RESULTS: > [[file:myfig.png]] > > I get what you expect to happen. In my customized emacs, I get something > else that is more like you see. > I use emacs that come from MacPorts, so for -Q option I start it using: /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -Q Your minimal example doesn't work for me, and in the results block I get: #+RESULTS: [[file:]] This is basically, the same problematic result that I get when using my regular initialized emacs. > > > John > > ----------------------------------- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > > On Mon, May 25, 2015 at 2:22 PM, Dror Atariah wrote: > >> 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 not reproduce it. >>> >>> > Does anyone see this message? :) >>> >>> Yes. >>> >> >> Thanks for your reply!!!! :) >> >> >>> >>> I'm on Mac too, which is where your problem is. Are you starting with >>> "emacs -Q"? I haven't seen you post a full MWE with both =init.el= and = >>> test.org=. You did provide a test Org file but it wasn't clear to me if >>> that was being used with emacs -Q. >>> >>> I tried to evaluate the problematic file using =emacs -Q= and the >> problem is the same. >> >> Following is the section of my =init.el= that deals with org-mode (if you >> need more, let me know): >> >> >> ------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------ >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> ;; Org Mode related >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> >> (setq org-directory "~/Dropbox/org") >> >> ;; Set a location for the list of agena files >> (setq org-agenda-files "~/.emacs.d/agenda_files") >> >> ;; Assigns org-mode to .org files >> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) >> (define-key global-map "\C-cl" 'org-store-link) >> (define-key global-map "\C-ca" 'org-agenda) >> (setq org-log-done t) >> (when window-system (require 'org-mouse)) >> >> ;; Auto enable flyspell-mode >> (add-hook 'org-mode-hook 'turn-on-flyspell) >> >> ;; Auto fill minor mode in org files >> (add-hook 'org-mode-hook 'turn-on-auto-fill) >> >> ;; Enable org-indent-mode for org buffers >> (add-hook 'org-mode-hook >> (lambda ()(org-indent-mode t)) t) >> >> ;; Use text-mode abbrev table in org-mode >> (add-hook 'org-mode-hook '(lambda () (setq local-abbrev-table >> text-mode-abbrev-table))) >> >> ;; Enables selection using SHIFT, while maintaining useful actions >> ;; related to SHITF in org >> (setq org-support-shift-select 't) >> >> ;; Enable smart qoutes (http://stackoverflow.com/q/15097114/671013) >> (setq org-export-with-smart-quotes t) >> >> ;; Customize the TODO-like keywords >> (setq org-use-fast-todo-selection t) >> (setq org-todo-keywords >> '((sequence "TODO(t)" "PROCESS(p@/!)" "|" "DONE(d!)" "CANCELED(c@ >> /!)"))) >> (setq org-todo-keyword-faces >> (quote (("TODO" :foreground "red" :weight bold) >> ("PROCESS" :foreground "blue" :weight bold) >> ("DONE" :foreground "forest green" :weight bold) >> ("CANCELLED" :foreground "forest green" :weight bold)))) >> (setq org-log-into-drawer t) >> >> ;; Capture-org >> (setq org-default-notes-file (concat org-directory "/notes.org")) >> (define-key global-map "\C-cc" 'org-capture) >> >> (setq org-capture-templates >> (quote (("t" "todo" entry (file (concat org-directory "/gtd.org")) >> "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) >> ("n" "note" entry (file (concat org-directory "/gtd.org")) >> "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t) >> ("j" "Journal" entry (file+datetree (concat org-directory "/ >> diary.org")) >> "* %?\n%U\n" :clock-in t :clock-resume t) >> ("v" "Vocabulary" entry >> (file+headline (concat org-directory "/vocab.org") >> "Vocabulary") >> "* %^{The word} :drill:\n:PROPERTIES:\n:Part-of-speech: >> %^{Part of speech|verb|noun|adj|adv}\n:END:\n %t\n %^{Extended word (may be >> empty)} \n** Answer \n%^{The definition}") >> ))) >> >> ;; Make use of refTeX in org-mode >> (defun org-mode-reftex-setup () >> "Setups RefTeX to be used with a org file. Code is based on >> http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/ >> . >> >> Once you run this, you will be asked to set a master file of the org." >> (interactive) >> (load-library "reftex") >> (and (buffer-file-name) >> (file-exists-p (buffer-file-name)) >> (reftex-parse-all)) >> (define-key org-mode-map (kbd "C-c )") 'reftex-citation) >> ) >> >> ;; Open indirect buffer in new frame >> (setq org-indirect-buffer-display 'new-frame) >> >> ;; Set common TAGS >> ;; Check: >> http://sachachua.com/blog/2008/01/tagging-in-org-plus-bonus-code-for-timeclocks-and-tags/ >> (setq org-tag-alist '( >> ("PRIVATE" . ?p) >> (:startgroup . nil) >> ("WORK" .?w) >> (:grouptags . nil) >> ("WORK@mittagseminar" . ?m) >> ("WORK@open_questions" . ?i) >> ("WORK@diss" . ?d) >> ("WORK@CV" . nil) >> (:endgroup . nil) >> (:startgroup . nil) >> ("IT" . ?I) >> (:grouptags . nil) >> ("IT@emacs" . nil) >> ("IT@git" . nil) >> ("IT@TeX" . nil) >> (:endgroup . nil) >> (:startgroup . nil) >> ("PROG" . ?p) >> (:grouptags . nil) >> ("PROG@mathematica" . nil) >> ("PROG@cgal" . nil) >> (:endgroup . nil) >> (:endgroup . nil) >> ("4freeTime" . ?4) >> )) >> >> ;; Targets include this file and any file contributing to the agenda - up >> to 9 levels deep >> (setq org-refile-targets (quote ((nil :maxlevel . 9) >> (org-agenda-files :maxlevel . 9)))) >> >> ;; Add time stamp of refiling >> (setq org-log-refile 'time) >> >> ;; Use full outline paths for refile targets - we file directly with IDO >> (setq org-refile-use-outline-path t) >> >> ;; Targets complete directly with IDO >> (setq org-outline-path-complete-in-steps nil) >> >> ;; Allow refile to create parent tasks with confirmation >> (setq org-refile-allow-creating-parent-nodes (quote confirm)) >> >> ;; Use IDO for both buffer and file completion and ido-everywhere to t >> (setq org-completion-use-ido t) >> (setq ido-everywhere t) >> (setq ido-max-directory-size 100000) >> (ido-mode (quote both)) >> >> ;; set latexmk the default LaTeX compiler for org-mode and in general >> (setq org-latex-to-pdf-process (list "latexmk -f -pdf %f")) >> >> ;; Enable clocking across sessions >> (setq org-clock-persist 'history) >> (org-clock-persistence-insinuate) >> >> ;; Set the number of clock items before wrapping them in a LOGBOOK drawer >> (setq org-clock-into-drawer '2) >> >> ;; Set the number of clock items before wrapping them in a LOGBOOK drawer >> (setq org-clock-into-drawer '2) >> >> ;; MobileOrg >> (load "mobileorg-setup") >> >> ;; Org drill >> (require 'org-drill) >> (setq org-drill-save-buffers-after-drill-sessions-p nil) >> (setq org-drill-scope 'file-no-restriction) >> >> ;; org2blog >> (require 'metaweblog) >> (require 'org2blog-autoloads) >> >> ;; Babel >> (setq org-src-preserve-indentation t) ;; >> http://stackoverflow.com/a/20903001/671013 >> >> (setq org-src-fontify-natively t) >> >> (setq org-confirm-babel-evaluate nil) >> >> (org-babel-do-load-languages >> 'org-babel-load-languages >> '((elasticsearch . t) >> (emacs-lisp . t) >> (python . t) >> (R . t))) >> >> ------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------ >> >> Best, >> Dror >> > > -- Dror Atariah, Ph.D. de.linkedin.com/in/atariah --047d7b4512f23e0f490516fbde6d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, May 25, 2015 at 8:30 PM, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
With emacs -Q, an= d this org file:

#+BEGIN_SRC emacs-lisp
(= org-babel-do-load-languages
=C2=A0'org-babel-load-languages
=C2=A0'((emacs-lisp . t)
=C2=A0 =C2=A0(python . t)))=
#+END_SRC

#+RESULTS:

#+BEGIN_SRC python :session with_matplotlib :resu= lts file :exports both
import matplotlib
matplotlib.use= ('Agg')
import matplotlib.pyplot as plt
fig=3Dp= lt.figure(figsize=3D(3,2))
plt.plot([1,3,2])
plt.savefi= g('myfig.png')
'myfig.png'
#+END_SRC

#+RESULTS:
[[file:myfig.png]]
=

I get what you expect to happen. In my customized= emacs, I get something else that is more like you see.
I use emacs that come from MacPorts, so for -Q option I start it = using: /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -Q
<= br>
Your minimal example doesn't work for me, and in the resu= lts block I get:

#+RESULTS:
[[file:]]

This is basically, the same problematic result that = I get when using my regular initialized emacs.
=C2=A0


<= /div>

On Mon, May 25, 2015 at 2:22 PM, Dror Ataria= h <drorata@gmail.com> wrote:
On Mon, M= ay 25, 2015 at 7:29 PM, Ken Mankoff <mankoff@gmail.com> wrot= e:

On 2015-05-25 at 13:25, Dror Atariah <drorata@gmail.com> 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.

Tha= nks for your reply!!!! :)
=C2=A0

I'm on Mac too, which is where your problem is. Are you starting with &= quot;emacs -Q"? I haven't seen you post a full MWE with both =3Din= it.el=3D and =3Dtest.org= =3D. You did provide a test Org file but it wasn't clear to me if that = was being used with emacs -Q.

I = tried to evaluate the problematic file using =3Demacs -Q=3D and the problem= is the same.

Following is the section of my =3Din= it.el=3D that deals with org-mode (if you need more, let me know):

------8<------8<------8<------8<------8<---= ---8<------8<------8<------8<------8<------8<------8<-= -----8<------8<------
;;;;;;;;;;;;;;;;;;;;;;;;;;;;= ;;;;;;;;;;;;;;;
;; Org Mode related
;;;;;;;;;;;;;;;;;;;= ;;;;;;;;;;;;;;;;;;;;;;;;

(setq org-directory "= ;~/Dropbox/org")

;; Set a location for the li= st of agena files
(setq org-agenda-files "~/.emacs.d/agenda_= files")

;; Assigns org-mode to .org files
(add-to-list 'auto-mode-alist '("\\.org$" . org-mo= de))
(define-key global-map "\C-cl" 'org-store-link= )
(define-key global-map "\C-ca" 'org-agenda)
=
(setq org-log-done t)
(when window-system (require 'org-= mouse))

;; Auto enable flyspell-mode
(ad= d-hook 'org-mode-hook 'turn-on-flyspell)

;= ; Auto fill minor mode in org files
(add-hook 'org-mode-hook = 'turn-on-auto-fill)

;; Enable org-indent-mode = for org buffers
(add-hook 'org-mode-hook
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (lambda ()(org-indent-mode t)) t)

;; Use text-mode abbrev table in org-mode
(add-hook '= ;org-mode-hook '(lambda () (setq local-abbrev-table text-mode-abbrev-ta= ble)))

;; Enables selection using SHIFT, while mai= ntaining useful actions
;; related to SHITF in org
(set= q org-support-shift-select 't)

(setq org-= export-with-smart-quotes t)

;; Customize the TODO-= like keywords
(setq org-use-fast-todo-selection t)
(set= q org-todo-keywords
=C2=A0 =C2=A0 =C2=A0 '((sequence "TO= DO(t)" "PROCESS(p@/!)" "|" "DONE(d!)" &q= uot;CANCELED(c@/!)")))
(setq org-todo-keyword-faces
=C2=A0 =C2=A0 =C2=A0 (quote (("TODO" :foreground "red"= ; :weight bold)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = ("PROCESS" :foreground "blue" :weight bold)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("DONE" :foregro= und "forest green" :weight bold)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("CANCELLED" :foreground "forest= green" :weight bold))))
(setq org-log-into-drawer t)
<= div>
;; Capture-org
(setq org-default-notes-file (c= oncat org-directory "/n= otes.org"))
(define-key global-map "\C-cc" = 9;org-capture)

(setq org-capture-templates
=C2=A0 =C2=A0 =C2=A0 (quote (("t" "todo" entry (file= (concat org-directory "/= gtd.org"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0"* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("n" "= ;note" entry (file (concat org-directory "/gtd.org"))
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"* %? :NOTE:\n%U\n%a\n" :clock-= in t :clock-resume t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ("j" "Journal" entry (file+datetree (concat org-= directory "/diary.org"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 "Vocabulary")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0"* %^{The word} :drill:\n:PROPERTIES:\n:Part-of-sp= eech: %^{Part of speech|verb|noun|adj|adv}\n:END:\n %t\n %^{Extended word (= may be empty)} \n** Answer \n%^{The definition}")
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 )))

;; Make= use of refTeX in org-mode
(defun org-mode-reftex-setup ()
<= div>=C2=A0 "Setups RefTeX to be used with a org file. Code is based on= http://www.mfasold.net/blog/2009/02/using-ema= cs-org-mode-to-draft-papers/.

Once you run thi= s, you will be asked to set a master file of the org."
=C2= =A0 (interactive)
=C2=A0 (load-library "reftex")
<= div>=C2=A0 (and (buffer-file-name)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(fi= le-exists-p (buffer-file-name))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(refte= x-parse-all))
=C2=A0 (define-key org-mode-map (kbd "C-c )&qu= ot;) 'reftex-citation)
=C2=A0 )

;; O= pen indirect buffer in new frame
(setq org-indirect-buffer-displa= y 'new-frame)

;; Set common TAGS
;; = Check: http://sachachua.com/bl= og/2008/01/tagging-in-org-plus-bonus-code-for-timeclocks-and-tags/
(setq org-tag-alist '(
=C2=A0 =C2=A0 =C2=A0 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 =C2=A0 =C2=A0 (:endgroup . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ("4freeTime" . ?4)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ))

;; Targets include this file and any file contributing to the agenda = - up to 9 levels deep
(setq org-refile-targets (quote ((nil :maxl= evel . 9)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-agenda-= files :maxlevel . 9))))

;; Add time stamp of refil= ing
(setq org-log-refile 'time)

;; U= se full outline paths for refile targets - we file directly with IDO
<= div>(setq org-refile-use-outline-path t)

;; Target= s complete directly with IDO
(setq org-outline-path-complete-in-s= teps nil)

;; Allow refile to create parent tasks w= ith confirmation
(setq org-refile-allow-creating-parent-nodes (qu= ote confirm))

;; Use IDO for both buffer and file = completion and ido-everywhere to t
(setq org-completion-use-ido t= )
(setq ido-everywhere t)
(setq ido-max-directory-size = 100000)
(ido-mode (quote both))

;; set l= atexmk the default LaTeX compiler for org-mode and in general
(se= tq org-latex-to-pdf-process (list "latexmk -f -pdf %f"))

;; Enable clocking across sessions
(setq org-clo= ck-persist 'history)
(org-clock-persistence-insinuate)
<= div>
;; Set the number of clock items before wrapping them in= a LOGBOOK drawer
(setq org-clock-into-drawer '2)
<= br>
;; Set the number of clock items before wrapping them in a LO= GBOOK drawer
(setq org-clock-into-drawer '2)

;; MobileOrg
(load "mobileorg-setup")

;; Org drill
(require 'org-drill)
= (setq org-drill-save-buffers-after-drill-sessions-p nil)
(setq or= g-drill-scope 'file-no-restriction)

;; org2blo= g
(require 'metaweblog)
(require 'org2blog-auto= loads)

;; Babel
(setq org-src-preser= ve-indentation t) ;; http://stackoverflow.com/a/20903001/671013

(setq org-src-fontify-natively t)

= (setq org-confirm-babel-evaluate nil)

(org-babel-d= o-load-languages
=C2=A0'org-babel-load-languages
= =C2=A0'((elasticsearch . t)
=C2=A0 =C2=A0(emacs-lisp . t)
=C2=A0 =C2=A0(python . t)
=C2=A0 =C2=A0(R . t)))
------8<------8<------8<------8<------8<------8<--= ----8<------8<------8<------8<------8<------8<------8<= ------8<------

Best,
Dror




--
Dror Atariah, Ph.D.
--047d7b4512f23e0f490516fbde6d--