From 0af62e57e2b06019d66d0aa51047cae6c6a81089 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 4 May 2021 01:09:28 +0800 Subject: [PATCH] Edit org-babel note --- 2020-04-17-21-41-30.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/2020-04-17-21-41-30.org b/2020-04-17-21-41-30.org index fdbf1b3..31a7134 100644 --- a/2020-04-17-21-41-30.org +++ b/2020-04-17-21-41-30.org @@ -1,6 +1,6 @@ #+title: Org mode: Babel #+date: "2020-04-17 21:41:30 +08:00" -#+date_modified: "2021-04-22 12:30:38 +08:00" +#+date_modified: "2021-05-04 01:02:15 +08:00" #+language: en #+tags: research.reproducibility @@ -34,9 +34,10 @@ The default mode is in functional mode but you can change it by setting ~:result * Functional mode values and passing them around With functional mode, the value return will appear as an appropriate element in the Org mode buffer. -Scalar values will appear as a string and vector values will appear as tables. The following examples are in [[https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-python.html][Python]]. +Scalar values appear as strings... + #+begin_src python :results value return "The quick brown fox jumps over the lazy dog." #+end_src @@ -44,6 +45,8 @@ return "The quick brown fox jumps over the lazy dog." #+results: : The quick brown fox jumps over the lazy dog. +...and vector values print as tables. + #+name: data #+begin_src python :results value return [