Re: [O] noweb and :var statements

2019-10-07 Thread Sebastian Miele
Ken Mankoff writes: > Hi Sebastian, > > Thanks for your help. I was running with "-Q" but must have been > making some other mistakes. It does work. > > As for your other email... I do know several tangles can go to the > same file. And I may be using <> incorrectly, but I'm using it > for the

Re: [O] noweb and :var statements

2019-10-06 Thread Ken Mankoff
Hi Sebastian, Thanks for your help. I was running with "-Q" but must have been making some other mistakes. It does work. As for your other email... I do know several tangles can go to the same file. And I may be using <> incorrectly, but I'm using it for the following reasons: 1) I'd like to

Re: [O] noweb and :var statements

2019-10-06 Thread Sebastian Miele
I wrote: > [..] > > Please try it with emacs -Q. Maybe your config is broken. After starting emacs -Q you will have to M-x customize-variable RET org-babel-load-languages and add Python as a loaded language.

Re: [O] noweb and :var statements

2019-10-06 Thread Sebastian Miele
Ken Mankoff writes: > On 2019-10-06 at 21:52 +02, Sebastian Miele > wrote... >> I wrote: >> >>> [..] >>> >>> However, something like the following may suit your use case. (For the >>> header-args property see section 15.2 (Using Header Arguments) of the >>> manual.) >>> >>> * A Heading >>>

Re: [O] noweb and :var statements

2019-10-06 Thread Sebastian Miele
Ken Mankoff writes: > Hi Sebastian, > > I'm not getting the results I expect from your MWE either. Perhaps I > gave too much code and asked X when what I really want is Y. I think > I've distilled it to this: > > What is the most elegant Org way to get a table into a Python array? I do not

Re: [O] noweb and :var statements

2019-10-06 Thread Ken Mankoff
On 2019-10-06 at 21:52 +02, Sebastian Miele wrote... > I wrote: > >> [..] >> >> However, something like the following may suit your use case. (For the >> header-args property see section 15.2 (Using Header Arguments) of the >> manual.) >> >> * A Heading >> :PROPERTIES: >> :header-args: :var

Re: [O] noweb and :var statements

2019-10-06 Thread Ken Mankoff
Hi Sebastian, I'm not getting the results I expect from your MWE either. Perhaps I gave too much code and asked X when what I really want is Y. I think I've distilled it to this: What is the most elegant Org way to get a table into a Python array? I can code it directly: #+BEGIN_SRC python

Re: [O] noweb and :var statements

2019-10-06 Thread Sebastian Miele
I wrote: > [..] > > However, something like the following may suit your use case. (For the > header-args property see section 15.2 (Using Header Arguments) of the > manual.) > > * A Heading > :PROPERTIES: > :header-args: :var table=table_foo > :END: > > #+NAME: table_foo > | foo | > |-| > |

Re: [O] noweb and :var statements

2019-10-06 Thread Sebastian Miele
Hi Ken! Ken Mankoff writes: > I'm having with noweb and variables. Can someone explain what I'm > doing wrong? For example, if I have this table: > > #+NAME: table_foo > | foo | > |-| > | 42 | > | 100 | > > And I want to import it into Python and use it, I can do that like this: > >

[O] noweb and :var statements

2019-10-06 Thread Ken Mankoff
Hi Org list, I'm having with noweb and variables. Can someone explain what I'm doing wrong? For example, if I have this table: #+NAME: table_foo | foo | |-| | 42 | | 100 | And I want to import it into Python and use it, I can do that like this: #+NAME: import #+BEGIN_SRC python :var