You can wrap result value into another language src block like this:
#+begin_src ruby :results code :wrap src shell
puts "echo 'hello'"
#+end_src
#+RESULTS:
#+begin_src shell
echo 'hello'
#+end_src
Same for JSON by changed `:wrap src shell` into `wrap json`. But you
need the value is JSON.
`:results file` will write non-empty result to `:file`. But `:results
link` don't, it just insert a link of `:file` at result. And that is
what I want to solve in the first post of this thread.
On 03/29/2018 12:23 AM, Nicolas Goaziou wrote:
Hello,
stardiviner writes:
If you can get ob-sql to output data in tabular form (if it is not nested)
you can do something like this:
#+name: tabular
#+BEGIN_SRC python :results value
d = [['type', 'test'], ['format', 'json']]
return d
#+END_SRC
#+RESULTS: tabular
| type | test |
| format | json |
#+BEGIN_SRC
On 03/28/2018 12:33 PM, Paul Eggert wrote:
Unfortunately the new org code contains the expression (encode-time 0
0 0 0 0 -5), which won't work on Emacs platforms where time_t is
32 bits or is unsigned, since such platforms cannot represent a time_t
value corresponding to the year -5.
Hmm, it works for emacs-lisp, however I specifically wanted to use it with
ob-sql, and can't find a way.
On Wed, Mar 28, 2018 at 2:05 PM John Kitchin
wrote:
> Does this do what you want:
>
> #+BEGIN_SRC emacs-lisp :wrap json
> (json-encode '((type . "text")))
>
Does this do what you want:
#+BEGIN_SRC emacs-lisp :wrap json
(json-encode '((type . "text")))
#+END_SRC
#+RESULTS:
#+BEGIN_json
{"type":"text"}
#+END_json
John
---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon
Sorry, I don't know the best medium to convey ideas and I'm afraid not
qualified (familiar with org-mode codebase) to submit a PR for this.
I wonder how difficult would be to
add the possibility to have babel src block results to be rendered as
json?
Basically a new result type
Hello,
Mark Edgington writes:
> When using org-tags-view, the list of tags used for tab-completion
> fails to include tags specified via the #+FILETAGS option when there
> exists a #+TAGS option in the file which doesn't contain the
> #+FILETAGS tags.
>
> For example, with
Dear all,
I am writing an org file to be exported to latex, with some headings for my own
use that I would like to be ignored in export. For this I am use the :ignore:
tag from extra.el (org-plus-contrib).
However, unfortunately it disregards any kind of line or paragraph break just
before
On Wednesday, 28 March 2018 13:55:01 CEST Nicolas Goaziou wrote:
> >
> > \begin{center}
> > \begin{tabular}{r}
> > \hline
> > 1.2e09 (abs)\\
> > 2.3\,(-09)\\
> > 3.4\,(09)\\
> > \hline
> > \end{tabular}
> >
> See `org-latex-table-scientific-notation'. I also find the default value
> a bit
Hello,
stardiviner writes:
> Hi, Nicolas, I have problem in my code. Even after many times and
> 5 hourse Edebug on ob-core.el code. Still can't find out where is
> wrong. After Edebug, just know somewhere is wrong. here is my info:
>
> - [ ] probelm is on
Hi, Nicolas, I have problem in my code. Even after many times and 5
hourse Edebug on ob-core.el code. Still can't find out where is wrong.
After Edebug, just know somewhere is wrong. here is my info:
- [ ] probelm is on ~org-babel-merge-params~, ~info~ is generated from
it, but it removed
Thank you!
Zhihao
On Wed, Mar 28, 2018 at 4:28 PM Berry, Charles wrote:
>
>
> > On Mar 28, 2018, at 7:42 AM, Zhihao Ding wrote:
> >
> > I was wondering if anyone could share an example for referencing the
> results of a source code block in place.
> >
> On Mar 28, 2018, at 7:42 AM, Zhihao Ding wrote:
>
> I was wondering if anyone could share an example for referencing the results
> of a source code block in place.
>
See
(info "(org) Evaluating code blocks")
Example
#+Name: put_in_para
#+BEGIN_SRC R :exports
Hello,
Буковская Агнесса writes:
> Maybe there is typo in orgmode manual:
> https://orgmode.org/org.html#capture-protocol
>
>> To use this feature, add a bookmark with an arbitrary name, e.g. ‘Org:
>> capture’ and enter this as ‘Location’:
>>
>>
When using org-tags-view, the list of tags used for tab-completion
fails to include tags specified via the #+FILETAGS option when there
exists a #+TAGS option in the file which doesn't contain the
#+FILETAGS tags.
For example, with the following options, the foo tag will not show up
when trying
Hi there,
I was wondering if anyone could share an example for referencing the
results of a source code block in place.
For example, a source code block could be defined as below
#+HEADER: n_value
#+HEADER: :results value
#+HEADER: :noweb yes
#+BEGIN_SRC R
n_value=10
n_value
This implementation has some problem that some side case are not handled.
Please reference this previous patch email:
https://lists.gnu.org/archive/html/emacs-orgmode/2018-03/msg00507.html
Hello,
Günter Lichtenberg writes:
> I have a document with many automatically generated tables that contain
> numbers in exponential Format, e.g. 2e09. When I export the tables to LaTeX
> and pdf I get something like 2 (-09) in the pdf, if there is no character
>
Hello!
Maybe there is typo in orgmode manual:
https://orgmode.org/org.html#capture-protocol
> To use this feature, add a bookmark with an arbitrary name, e.g. ‘Org:
> capture’ and enter this as ‘Location’:
>
> javascript:location.href='org-protocol://template=x'+
>
From: Robert Hambrock
* lisp/ob-clojure.el (org-babel-execute:clojure): Implement :ns.
---
lisp/ob-clojure.el | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el
index 890f60ada..b8c5c6375 100644
---
Hi
I have a document with many automatically generated tables that contain
numbers in exponential Format, e.g. 2e09. When I export the tables to LaTeX
and pdf I get something like 2 (-09) in the pdf, if there is no character
after the number in the table
Minimal Example:
|--|
|
From: Robert Hambrock
Dear Org maintainer,
this patch implements namespace specification for Clojure source blocks,
necessary in Org files with Clojure source blocks segregated from their
applicable namespace declaration (Clojure source file, REPL declaration, or
23 matches
Mail list logo