Re: [O] strange behavior with org-babel python

2015-05-13 Thread Puneeth Chaganti
On Tue, May 12, 2015 at 2:40 PM, Doyley, Marvin M. mdoy...@ur.rochester.edu wrote: Doy you know why this is the case? I'm not sure what is going on here, and have not been able to reproduce your problem. What version of Emacs and Org-mode are you using?

Re: [O] strange behavior with org-babel python

2015-05-12 Thread Doyley, Marvin M.
Thanks, this works when I use :session, but I don’t get any results when I am not running a session. Doy you know why this is the case? Cheers, M On May 11, 2015, at 11:20 PM, Puneeth Chaganti puncha...@gmail.com wrote: On Tue, May 12, 2015 at 6:37 AM, Doyley, Marvin M.

Re: [O] strange behavior with org-babel python

2015-05-11 Thread Puneeth Chaganti
On Tue, May 12, 2015 at 6:37 AM, Doyley, Marvin M. mdoy...@ur.rochester.edu wrote: Hi there, If run the follow codes I get the following, could someone explain to me what is going wrong [snip] PS in .emacs, I have (setq org-babel-python-command ipython --no-banner --classic

[O] strange behavior with org-babel python

2015-05-11 Thread Doyley, Marvin M.
Hi there, If run the follow codes I get the following, could someone explain to me what is going wrong (1) The desired results #+BEGIN_SRC python :results output :exports both :session x=5 def foo(x): if x0: return x+1 else: return x-1