Herbert Sitz <hes...@gmail.com> wrote: > ------------------------------------- > > but this doesn't > ----------------------------- > #+begin_src python :results output :session mypy > x = 1 > y = 1 > z = 1 > for i in range(1,2): > x = x + i > print x > > for y in range(10,11): > print y > > for z in range(5,6): > print z > while y > 0: > print y > y=y-1 > > print "Did it work?" > #+end_src > ------------------------------ >
It works fine if you make the empty lines "indented empty" lines: add enough space so the newline is at the proper indentation point. Nick