|
From: | Dushyant Juneja |
Subject: | Re: [O] org-babel python eval discrepancy |
Date: | Thu, 03 Aug 2017 18:54:06 +0000 |
Shell is using python3 and org-mode python2?On Aug 3, 2017 8:31 PM, "Dushyant Juneja" <address@hidden> wrote:Hi,I have the following code block in my org mode based literate programming notes:#+BEGIN_SRC pythonprint('1+2 > 4 is ', 1+2 > 4)print("What is 3 + 2?", 3 + 2)#+END_SRCWhen I tangle it and run the script, it gives me expected output as follows:> python notes.py1+2 > 4 is FalseWhat is 3 + 2? 5However, in buffer evaluation (using =C-c C-c= with cursor on src block) gives me the following output, which seems unexpected:#+BEGIN_SRC pythonprint('1+2 > 4 is ', 1+2 > 4)print("What is 3 + 2?", 3 + 2)#+END_SRC#+RESULTS:: ('1+2 > 4 is ', False): ('What is 3 + 2?', 5)Any hints what may be going wrong?Dushyant
[Prev in Thread] | Current Thread | [Next in Thread] |