The following file contents, when exported (to HTML or pdf), produce incorrect output: #+PROPERTY: header-args:python :session "*Python*" #+PROPERTY: exports both #+PROPERTY: results value verbatim #+BEGIN_SRC python import numpy as np np.array([1, 2, 3]) #+END_SRC
The resulting value block contains [1 2 3], which is not the print representation of that numpy array. I suspect the problem arises in ob-python.el from the use of str() instead of repr(). Thanks. --Steve Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ Emacs : GNU Emacs 24.3.1 (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51) of 2013-09-24 on Yukikaze.local Package: Org-mode version 8.2.1 (8.2.1-10-g9c1ef6-elpaplus @ /Users/sbagley/Dropbox/emacsd/elpa/org-plus-contrib-20131014/)