emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERT


From: Berry, Charles
Subject: Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block
Date: Tue, 31 Mar 2020 01:08:38 +0000


> On Mar 30, 2020, at 3:23 PM, Joost Kremers <address@hidden> wrote:
> 

[stuff deleted]

> 
> If I reverse the order and add a `+` sign, like so:
> 
> ```
> :PROPERTIES:
> :header-args:python+: :session py1 :results function
> :header-args:python+: :tangle out1.py
> :END:
> ```
> 
> the code does indeed get tangled, but the `:results` header arg isn't picked 
> up, because the code block doesn't produce any output.


Not so.

`org-babel-view-src-block-info' (C-c C-v C-i with point in the src block below) 
reports

,----
| Lang: python
| Properties:
|       :header-args    nil
|       :header-args:python     :session py1 :results function :tangle out1.py
| Header Arguments:
|       :cache          no
|       :exports        code
|       :hlines         no
|       :noweb          no
|       :results        function replace
|       :session        py1
|       :tangle         out1.py
`----

> 
> For reference, this is my test file:
> 
> ```
> * Header 1
> :PROPERTIES:
> :header-args:python+: :session py1 :results function
> :header-args:python+: :tangle out1.py
> :END:
> 
> #+begin_src python
> a=1
> b=2
> c=a+b
> return c
> #+end_src
> 
> #+RESULTS:
> ```





reply via email to

[Prev in Thread] Current Thread [Next in Thread]