如何防止结果显示交互式 python shell 的 header?

How do I prevent results from showing the header of the interactive python shell?

org-mode中,如果我这样执行我的第一个命令,

#+BEGIN_SRC python :session :results output
t = [1,2,3]
print(t)
#+END_SRC

我得到

#+RESULTS:
: Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
: [GCC 5.4.0 20160609] on linux2
: Type "help", "copyright", "credits" or "license" for more information.
: >>> python.el: native completion setup loaded
: [1, 2, 3]

我如何简单地得到:

#+RESULTS:
: [1, 2, 3]

请注意,如果我再次 C-c C-c,消息就会消失(因为 ethe 进程现在存在)。

这是一个 hack,但它应该有效:

(setq org-babel-python-command "python -ic ''")

查看帖子 https://mail.python.org/pipermail/python-list/2010-March/569778.html 以了解“-c ''”抑制消息的奇怪方法。