Attempting to eval a babel source block that contains a
__future__ import and also uses a
:var causes Python to spit out
File "<stdin>", line 2 SyntaxError: from __future__ imports must occur at the beginning of the file
Presumably babel is sticking the
:var definitions before the first line of my code. How can I prevent babel from doing this?
Minimum failing example:
#+NAME: data | Hi | 2 | #+BEGIN_SRC python :var data=data from __future__ import print_function print(*data) #+END_SRC