I am trying to pass the value of an octave/matlab array into a python code block in org-mode. But I can't get the python-end to receive the value.
With the answers in this question, I can generate an org-mode table from a matlab array a as follows:
#+name: test-data
#+begin_src octave :session test_case :exports both
a =[ 1 2; 3 4; 5 6];
#+end_src
#+RESULTS: test-data
: org_babel_eoe
#+NAME: test-output-value
#+BEGIN_SRC octave :session test_case :results value :colnames yes :hline yes
ans = a
#+END_SRC
#+RESULTS: test-output-value
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
However, when I try to pass the results of the matlab-generated table to python, I get no output from python:
#+NAME: ocatveoctave-to-python
#+BEGIN_SRC python :var a=test-output-value :results value :exports none
len(a)
#+END_SRC
#+RESULTS: ocatveoctave-to-python
: None
Can anyone help explain how to make the chaining above work?
(This is with default Emacs 26, Python 3.8 of Ubuntu 20.04 LTS).