{"pageProps":{"metadata":{"date":"\"2020-04-17 21:41:30 +08:00\"","date_modified":"\"2021-07-17 19:03:50 +08:00\"","language":"en","source":""},"title":"Org mode: Babel","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Babel is the framework that enables "},{"type":"element","tagName":"a","properties":{"href":"/2020-04-20-16-51-40"},"children":[{"type":"text","value":"Org mode"}]},{"type":"text","value":" to be a "},{"type":"element","tagName":"a","properties":{"href":"/2020-04-12-11-20-53"},"children":[{"type":"text","value":"Reproducible research"}]},{"type":"text","value":" tool.\nIt is comparable to Jupyter and R Markdown that other computational scientists use it.\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Among other features, it can do the following.\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Prints the results from code blocks.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Create files from a single document, making it possible to create entire computational reports.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Pass values from one code block to another, even with different programming languages.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Create graphics similarly to Jupyter and R Markdown notebooks.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Call code blocks either inline, as a block, or inside of another code block, thereby enabling metaprogramming and dynamic contents.\n"}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The unfortunate thing is most of these features are only available when using with "},{"type":"element","tagName":"a","properties":{"href":"/2021-06-20-20-42-44"},"children":[{"type":"text","value":"GNU Emacs"}]},{"type":"text","value":".\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"For more details, you can see "},{"type":"element","tagName":"a","properties":{"href":"/text.org-mode.babel"},"children":[{"type":"text","value":"The basics of org-babel"}]},{"type":"text","value":".\n"}]}]},"backlinks":[{"path":"/2020-04-20-16-51-40","title":"Org mode"},{"path":"/2021-06-20-20-42-44","title":"GNU Emacs"},{"path":"/text.org-mode.babel","title":"The basics of org-babel"}]},"__N_SSG":true}