Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to call Org Babel code blocks from other code blocks?

I have a number of Org Babel code blocks in my Library of Babel that I call sequentially quite often.

Is it possible to make an Org Babel code block that calls these other code blocks in order?

like image 965
Conor Avatar asked Mar 29 '13 20:03

Conor


1 Answers

Yes, you can. Simply use :var where the parameter is the result of another block execution.

#+name: clean
#+begin_src ...
...
#+end_src

#+name: plot
#+begin_src :var data=clean
...
#+end_src
like image 183
fniessen Avatar answered Nov 23 '22 22:11

fniessen