emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-babel python eval discrepancy


From: Dushyant Juneja
Subject: [O] org-babel python eval discrepancy
Date: Thu, 03 Aug 2017 17:31:12 +0000

Hi,

I have the following code block in my org mode based literate programming notes:

#+BEGIN_SRC python 
print('1+2 > 4 is ', 1+2 > 4)
print("What is 3 + 2?", 3 + 2)
#+END_SRC

When I tangle it and run the script, it gives me expected output as follows:

> python notes.py 
1+2 > 4 is  False
What is 3 + 2? 5

However, in buffer evaluation (using =C-c C-c= with cursor on src block) gives me the following output, which seems unexpected:

#+BEGIN_SRC python 
print('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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]