问题标签 [org-babel]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c - Why does this org-babel c snippet produce no output?
Basically, printf
doesn't produce output if I put it in main()
.
This works:
But this
results in
Code block produced no output
I have tried adding :results output
to the begin_src
line. I have tried including stdio.h
. When I look in *Messages*
, I see that when I wrap the printf
in main
, I get the error
**Error reading results: (beginning-of-buffer)**
What is wrong here?
emacs - 有什么方法可以使 org-babel 正确缩进 noweb 纠结的代码?
纠结这个:
产生这个:
我打开了org-src-preserve-indentation,但它无法保留不存在的内容。如果代码编辑窗口看不到前面源代码块中的部分,则无法正确设置。最后,我不想在每次开始一个新的源代码块时都通过所有之前的代码片段来确定缩进应该从什么开始。
当前的技巧是纠结源代码,在新缓冲区中打开纠结的文件,全选并运行c-indent-line-or-region,但我希望有比这更好的东西。
组织模式版本:8.2.5h
emacs - 如何在 Emacs 中设置编辑 babel src 块的主要模式?
我尝试使用C-c '调用org-edit-src-exit
来编辑“点”源代码。如何graphviz-mode
在该源代码编辑缓冲区上设置默认主模式?
csv - org-mode 使用 org-babel 过滤表
要在 emacs 中使用 org-mode 过滤表,我使用的是 org-babel。但是,我的功能不太有效,我不知道为什么。以下是包含我正在测试我的功能的 csv 的 zip 文件的链接:source。csv 被命名为2014-1 SubdivisionCodes.csv。
首先,我使用 emacs 打开文件,然后突出显示整个区域并运行将org-table-create-or-convert
CSV 转换为 ORG 表的命令。接下来我使用org-babel
语法命名表:#+tblname: un-states
紧随其后的是整个表格。我想过滤掉作为状态的行。这是我通过第四列中的值过滤表格的代码:
我评估函数,C-c C-c
我得到的结果是:
数据包括美利坚合众国的州,因此我们显然遗漏了很多州。为什么我的功能不起作用?我立即注意到的是AU
第一组有状态的行,它们都是连续的行。因此,它似乎在此之后停止工作。
- 如何让我的功能正常工作并包含更多状态?
感谢所有的帮助。我几个小时前才开始使用org-babel
,非常感谢所有帮助!
emacs - Can't find any document about org-babel-clean-text-properties function
I found org-babel-clean-text-properties in someone's code which is written in 2009. But I can't find any document about it and it is not defined in org-mode 8.3beta.
Anyone knows where can i find document about it or any other function as replacement for it?
thanks.
emacs - 组织模式源块可见性循环
我正在尝试将源块添加到可见性循环树。本质上,我希望将源块视为其标题的子项。考虑以下 org-mode 文档:
我希望能够在标题一上按 TAB 以循环折叠包括源块在内的各个部分。目前 org-mode 似乎确实具有折叠源块的功能,因为如果我转到 #+BEGIN_SRC R 并点击选项卡,我可以折叠它,但它似乎没有在全局循环中得到处理。有什么建议可以添加吗?
谢谢!
org-mode - 如何在 org babel 中包含多个?
我在 org babel 中使用 C++,想知道如何格式化包含,以便我可以列出多个。
这是我正在尝试的(失败)
在这种情况下,两者printf
和cout
都未在此范围内声明。我可以:includes <string>
从标题中删除不必要的内容并且cout
不会引发错误,所以看起来只有最后一个:includes
重要。我尝试使用空、逗号和空格作为分隔符将多个包含加载到同一行中,并且我总是在包含指令的末尾收到有关额外标记的错误。我也尝试过使用:includes+
在标题行上有效的情况,但它没有。
我相当确定我正在尝试做的事情应该是可能的,因为它在文档中说
组织版本:8.2.7-4-g880362-elpa
编辑:
值得注意的是,其他标头参数可以串在一起(即:results raw drawer
会在抽屉中产生未格式化的结果),因此很有可能这是一个错误。使用:include <cstdio> <iostream>
会产生一个编译器错误,即在行尾有一个额外的标记#include <cstdio>
。
编辑2:
原来它实际上是org中的一个错误,所以它已经提交了。
python - 将字符串参数从 org 模式的表中传递给代码块
我试图在使用and时将字符串作为代码块的参数传递。特别是,我考虑以下最小示例:org-mode
org-babel
如您所见,第一个单元格已正确填充。但是,我无法正确处理第二个。我尝试了各种选择;例如:
有任何想法吗?
顺便说一句: #+CALL: test(x="fb")
返回预期结果,即2
. 内联调用或“表调用”的语法似乎不同...... :(
python - 在 org 模式 babel 中调试 PYTHON 代码块
只是我,还是调试位于缓冲区中的babel
块内的代码真的有点痛苦?org-mode
主要有趣的问题是我在哪里可以看到print
's 的输出?
python
嵌入 inside 时如何调试代码org-mode
?