From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Generate new babel code blocks and/or initialized code/data? Date: Tue, 20 Sep 2016 15:07:30 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c077910ebdbca053cf52301 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmQOD-0002jf-Iw for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 15:07:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmQOB-0005DX-Sb for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 15:07:32 -0400 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]:35471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmQOB-0005DP-ND for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 15:07:31 -0400 Received: by mail-io0-x22e.google.com with SMTP id m186so29933127ioa.2 for ; Tue, 20 Sep 2016 12:07:31 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode Mailinglist --94eb2c077910ebdbca053cf52301 Content-Type: text/plain; charset=UTF-8 So I can run code for a REPL-type language like Clojure in a babel code block and get "results," e.g., a Clojure code block takes in a vector of mappings and produces new "results": #+RESULTS[abc5c51bb569a82c19c4eea1c385c74e839922c7]: symmetrize-body-parts-test | :name | head | :size | 3 | | :name | left-eye | :size | 1 | | :name | right-eye | :size | 1 | | :name | left-ear | :size | 1 | . . . but could I generate results that aren't just static output listed after a #+RESULTS tag, rather, embedded in a newly created babel code block? I'd like such output "initialized" as far as the running REPL is concerned too. Is it possible to generate new code/data that is immediately known to the REPL session? Any examples don't have to be Clojure. LB --94eb2c077910ebdbca053cf52301 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
So I can run code for a REPL-type language like Clojure in= a babel code block and get "results," e.g., a Clojure code block= takes in a vector of mappings and produces new "results":
#+RESULTS[abc5c51bb569a82c19c4eea1c385c74e839922c7]: symm= etrize-body-parts-test
| :name | head =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0| :size | =C2=A03 |
| :name | left-eye =C2=A0 =C2= =A0 =C2=A0 =C2=A0| :size | =C2=A01 |
| :name | right-eye =C2=A0 = =C2=A0 =C2=A0 | :size | =C2=A01 |
| :name | left-ear =C2=A0 =C2= =A0 =C2=A0 =C2=A0| :size | =C2=A01 |
. . .

but could I generate results that aren't just static output li= sted after a #+RESULTS tag, rather, embedded in a newly created babel code = block? I'd like such output "initialized" as far as the runni= ng REPL is concerned too. Is it possible to generate new code/data that is = immediately known to the REPL session? Any examples don't have to be Cl= ojure.

LB


--94eb2c077910ebdbca053cf52301--