I've got some Python source code blocks in my Org mode document and when I print lists as output I get an org table of one row with all elements (regardless of whether I create a session or not):
#+BEGIN_SRC python :session
list = [1, 2, 3, 4]
list
#+END_SRC
#+RESULTS:
| 1 | 2 | 3 | 4 |
For long lists this is inconvenient (also when exporting to LaTeX/PDF, for example). Is there a way to change the output to one column, multiple rows?
I have tried adding :results list
to the source block header, which sort of gives me what I want. Nevertheless, a table is preferred over a list.