Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [babel]

The tag has no usage guidance.

0
votes
2answers
25 views

Why isn't my codeblock executing and displaying the output?

I have an org-mode file, with org-mode version 9+ (so my understanding is that Babel should be integrated). Then I have the following in the file #+BEGIN_SRC python :exports both :results output ...
0
votes
1answer
31 views

How to get bash source code blocks to execute .profile / .bashrc

I don't understand how the source code blocks work exactly. There are some variables, definitions and aliases in my .bashrc that I think I should be able to use in the source code blocks. However, ...
2
votes
0answers
50 views

Flycheck Emacs Lisp in Org-mode babel source blocks

I want to have Flycheck syntax checking when I am editing Emacs Lisp code in a literal Org-mode file using babel SRC blocks. (Using Org's editing buffers with C-c '). However the flycheck-emacs-lisp ...
0
votes
1answer
74 views

Interpreter discrepancy in org-babel-python and python-mode

(Emacs version 26.1, Org version 9.1.9) I have tried numerous solutions to get working in org-mode source blocks. This solution works to change python-mode to utilize the Python3 interpreter, which I ...
1
vote
0answers
27 views

Org-mode :results file hook to launch file

My scenario python code creating a wav file last line of code returns the written file name org-mode src block with the option :results file The result block correctly links to the audio file, and I ...
2
votes
2answers
88 views

Babel org-mode, how to save the temporary file run

How can I save the temporary file that is used to run the script in a babel code block? I need to debug why the perl mode is not able to read values as tables any more. Example: #+BEGIN_SRC perl ...
3
votes
0answers
74 views

Aligning (ditaa) rectangles with variable string width in yasnippet

To quickly add simple diagrams to notes, I've created yasnippets for ditaa boxes. The text inside each box is a $x - and therefore has a length I do not know at snippet design time. As a consequence, ...
2
votes
1answer
108 views

Can tangling embed code in external files? instead of recreating files

I'm building a web application using the literate programming style. At least trying to. I wanted to "hit the ground running", so I decided "make a copy" of one of the many "starter apps" https://...
5
votes
1answer
1k views

How to fix “Symbol's function definition is void: org-babel-get-header”

How do you trouble shoot this? (trying to run a sh block async) #+BEGIN_SRC sh /tmp/7.sh ...
1
vote
1answer
291 views

org-babel-load-file doesn't load entire file

In ~/.emacs.d/init.el I'm calling my annotated configurations file settings.org like so: (require 'ob-tangle) (org-babel-load-file (expand-file-name "~/.emacs.d/settings.org")) This generates ...
4
votes
2answers
409 views

How to display a babel tangled source code block in org-mode?

I have simple code blocks that I would like to show the noweb generated source for inside the same org-mode file. eg: #+NAME: example #+BEGIN_SRC java :classname Test :results code :exports both :...
3
votes
0answers
301 views

How to generate inline plot result for ob-clojure?

Question: How to generate inline plot image result in Org-mode babel clojure src block? I tried some ways: First way: use :results file :file "clojure-babel-figure-result.png" #+BEGIN_SRC clojure :...
1
vote
1answer
297 views

Error when (stata . t) added to org-babel-do-load-languages in an attempt to evaluate Stata code in org-mode

I have built the latest Emacs 26.0.50.1 on a Debian OS 8 (Jessie) that uses Linux version 3.14.5. Then I installed org-mode version 9.0.3. I want to use the proprietary data analysis and statistical ...
1
vote
0answers
259 views

Using a function as an org-babel header argument

Say I am using org-babel to tangle code blocks from an org document. I have several blocks with random code in them. My goal is to dynamically tangle (or not) individual blocks following a condition, ...