Org-mode code evaluation seems to be a great tool for literate programming. Unfortunately, I couldn't find many examples on that online. I would like to pass variables (in my case python) between code blocks without the use of the session argument in the header. I know that using sessions you can do it, e.g.
#+BEGIN_SRC python :session sample :results none
x = 12
#+END_SRC
#+BEGIN_SRC python :results output :session sample
print 'x=' + str(x)
#+END_SRC
Is it possible to pass variables by using the "var" header argument?
/doc/library-of-babel.orgof your orgmode installation.