Re: [O] babel python example not reproducible

2014-06-19 Thread Eric Schulte
Andreas Röhler andreas.roeh...@easy-emacs.de writes: On 18.06.2014 15:59, Eric Schulte wrote: Shiyuan gshy2...@gmail.com writes: Hi all, I found a solution to fix the echo problem of the emacs python shell:

Re: [O] babel python example not reproducible

2014-06-19 Thread Andreas Röhler
On 19.06.2014 15:40, Eric Schulte wrote: Andreas Röhler andreas.roeh...@easy-emacs.de writes: On 18.06.2014 15:59, Eric Schulte wrote: Shiyuan gshy2...@gmail.com writes: Hi all, I found a solution to fix the echo problem of the emacs python shell:

Re: [O] babel python example not reproducible

2014-06-18 Thread Eric Schulte
Shiyuan gshy2...@gmail.com writes: Hi all, I found a solution to fix the echo problem of the emacs python shell: http://stackoverflow.com/questions/8060609/python-interpreter-in-emacs-repeats-lines That is, in the Interior Python buffer, do M-: (setq comint-process-echoes t) ;; or nil

Re: [O] babel python example not reproducible

2014-06-18 Thread Eric Schulte
Hi Guys, please permit a comment after some times - it's just not to create heroes :) IMHO the complexity orb-babel took by creating its own slots for symbols like function names, variables etc. is not to handle reliably across the languages. I don't understand what you mean by the

Re: [O] babel python example not reproducible

2014-06-18 Thread Andreas Röhler
On 18.06.2014 15:59, Eric Schulte wrote: Shiyuan gshy2...@gmail.com writes: Hi all, I found a solution to fix the echo problem of the emacs python shell: http://stackoverflow.com/questions/8060609/python-interpreter-in-emacs-repeats-lines That is, in the Interior Python buffer, do M-:

Re: [O] babel python example not reproducible

2014-06-17 Thread Shiyuan
Hi all, I found a solution to fix the echo problem of the emacs python shell: http://stackoverflow.com/questions/8060609/python-interpreter-in-emacs-repeats-lines That is, in the Interior Python buffer, do M-: (setq comint-process-echoes t) ;; or nil Now, if I enter command directly in the

Re: [O] babel python example not reproducible

2014-06-17 Thread Andreas Röhler
On 17.06.2014 08:21, Shiyuan wrote: Hi all, I found a solution to fix the echo problem of the emacs python shell: http://stackoverflow.com/questions/8060609/python-interpreter-in-emacs-repeats-lines That is, in the Interior Python buffer, do M-: (setq comint-process-echoes t) ;; or nil

Re: [O] babel python example not reproducible

2014-06-16 Thread Shiyuan
The two setting doesn't seem to have effect. (setq python-shell-interpreter ipython) (setq python-shell-interpreter-args --pylab) When I did `C-c C-c` on the SRC block to execute the code, emacs created a buffer with the interior python process. When I switched to the process, I saw it is python

Re: [O] babel python example not reproducible

2014-06-16 Thread Nick Dokos
Shiyuan gshy2...@gmail.com writes: The two setting doesn't seem to have effect.   (setq python-shell-interpreter ipython) (setq python-shell-interpreter-args --pylab) When I did `C-c C-c` on the SRC block to execute the code, emacs created a buffer with the interior python process. When I

Re: [O] babel python example not reproducible

2014-06-16 Thread Doyley, Marvin
Hi Shiyuan, I think the problem is that Emacs or babel is using python located in /usr/bin or /usr/local/sbin rather than default python or ipython. The way I got around this is rename python in these locations to python_old and then did a soft link to ipython (i.e., ln -s

Re: [O] babel python example not reproducible

2014-06-16 Thread Eric Schulte
mdoy...@ur.rochester.edu (Doyley, Marvin) writes: Hi Shiyuan, I think the problem is that Emacs or babel is using python located in /usr/bin or /usr/local/sbin rather than default python or ipython. The way I got around this is rename python in these locations to python_old and then did

Re: [O] babel python example not reproducible

2014-06-16 Thread Doyley, Marvin
Hi Eric, Thanks for showing me the smart way of doing this. cheers, M --

Re: [O] babel python example not reproducible

2014-06-11 Thread Doyley, Marvin
Works for me, see example below #+BEGIN_SRC python :results output :session foo x=100 print hello 2 print bye #+END_SRC #+RESULTS: : : hello : 2 : bye #+BEGIN_SRC python :results output :session foo print hello good bye print Printing value from previous session, x #+END_SRC #+RESULTS: : :

[O] babel python example not reproducible

2014-06-10 Thread Shiyuan
Hi, I try to understand the difference of session and non-session as in http://orgmode.org/manual/Results-of-evaluation.html#Results-of-evaluation http://orgmode.org/manual/Results-of-evaluation.html#Results-of-evaluation However, I copy-paste the example but have different result. It looks