[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Babel: how to get rid of the quotes wraping the result of a Sage
From: |
Emmanuel Charpentier |
Subject: |
Re: [O] Babel: how to get rid of the quotes wraping the result of a Sagemath code block ? |
Date: |
Sun, 03 Mar 2019 12:09:09 +0100 |
User-agent: |
Evolution 3.30.5-1 |
Ahem...
It turns out that this was (partly) a pilot error, bound to the
specifics of ob-sagemath.
I still do not understand the impact of the raw and verbatim options of
:results, but I'll come back later if the behaviou I got is indeed
*really* buggy.
Sorry for the noise...
--
Emmanuel Charpentier
Le samedi 02 mars 2019 à 22:11 +0100, Emmanuel Charpentier a écrit :
> Dear list,
>
> I would like to use Sage to build the text of a Graphviz program to
> display some graph, then pass this program body to a dot code block.
>
> The first step is easy. But I'm unable to accomplish the second one
> becausethe program text (which is correct !) is wrapped in a pair of
> quotes, on which Graphviz (dot) chokes. I-ve tried
> * passing it as an argument (:var=myblock())
> * calling the Sage code block in a noweb call (<<myblock()>>)
> to no avail.
>
> I've tried the "verbatim" and "raw" options to :results of my Sage
> block. Again without success.
>
> It [[
> https://emacs.stackexchange.com/questions/20652/org-babels-call-functionality-wraps-all-results-in-quotes
> ][seems]]
> that a similar problem exists for Python code...
>
> Any suggestions ?
>
> --
> Emmanuel Charpentier