首页 > 解决方案 > 我如何抑制结果抽屉中的#lines 只有答案

问题描述

Win10:Emacs 25.2.1:Org 9.4.4 我正在从 ob-ipython Git 页面运行这个测试源块:

#+BEGIN_SRC ipython :session mysession :exports both :results raw
  def foo(x):
      return x + 9
  [foo(x) + 7 for x in range(7)]
#+END_SRC

#+RESULTS:
# Out[2]:
# text/plain
[16, 17, 18, 19, 20, 21, 22]

我找不到抑制 # Out[] 和 # text/plain 行的方法。我只想要原始数据,但我尝试过的所有选项仍然在结果中显示这两行。我已经搜索了答案,但还没有看到其他人的输出看起来像这样。有什么建议可以抑制这些线条吗?

标签: python-3.xemacsorg-mode

解决方案


推荐阅读