【问题标题】:python code blocks in org-mode don't have persistent sessions in emacs24.3org-mode 中的 python 代码块在 emacs24.3 中没有持久会话
【发布时间】:2013-03-19 02:06:42
【问题描述】:

org-mode 处理 Emacs24.1 和 Emacs24.3 之间源代码块中 :session 参数的方式是否发生了重大变化?我无法再运行持久的 python 会话,而我曾经能够。例如,这样的东西曾经在 Emacs24.1 中工作

#+BEGIN_SRC python :session sample
x = 12;
#+END_SRC

#+BEGIN_SRC python :results output :session sample
print "x =", x
#+END_SRC

#+RESULTS:
: x = 12

但是在 Emacs24.3 中,第二个块会抛出一个错误,指出 x 未定义。谁能给我解释一下?

【问题讨论】:

    标签: python emacs org-mode emacs24


    【解决方案1】:

    这显然是org-mode 开发人员中的一个已知问题。它似乎是最近才出现的。目前尚不清楚是什么原因导致它突然破裂。

    可以预期该修复程序将包含在 org-mode 的当前测试版中:即将成为 8.0 版。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多