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 writes: On 18.06.2014 15:59, Eric Schulte wrote: Shiyuan 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-line

Re: [O] babel python example not reproducible

2014-06-19 Thread Eric Schulte
Andreas Röhler writes: > On 18.06.2014 15:59, Eric Schulte wrote: >> Shiyuan 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 In

Re: [O] babel python example not reproducible

2014-06-18 Thread Andreas Röhler
On 18.06.2014 15:59, Eric Schulte wrote: Shiyuan 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-proces

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

Re: [O] babel python example not reproducible

2014-06-18 Thread Eric Schulte
Shiyuan 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 > > Now, if

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 N

Re: [O] babel python example not reproducible

2014-06-16 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-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-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

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 /anaconda/bin/ipython

Re: [O] babel python example not reproducible

2014-06-16 Thread Nick Dokos
Shiyuan 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 switched t

Re: [O] babel python example not reproducible

2014-06-15 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 pytho

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 #+RES

[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 However, I copy-paste the example but have different result. It