Hacker News new | ask | show | jobs
by base698 3430 days ago
Also, comes with org-babel that can do similar stuff with literate programming.. Also not sure how people live without it.
1 comments

One of the features that elevates org-babel is being able to work on the same data in multiple tools. It's not uncommon for me to start with data in a table, transform it with a bit of python or lisp, and feed the result into gnuplot.
If you could point to one simple example of this it works be awesome! I've used org-babel but in a very fragmented way. My sessions were separated from each other and I did not use multiple languages on the same data
The files are gone, but you do it by referring to the table/block names.

    #+name: data-table
    ....

    #+name: process-data
    #+begin_src lisp :var data=data-table
      ...
    #+end_src

    #+begin_src gnuplot :var data=process-data
      ...
    #+end_src