> On Mar 30, 2020, at 3:23 PM, Joost Kremers <joostkrem...@fastmail.fm> 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:
> ```