From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-babel -- Improper syntax error in session mode? Date: Mon, 20 Jun 2011 21:17:19 -0400 Message-ID: <7916.1308619039@alphaville.americas.hpqcorp.net> References: <87k4chwgpa.fsf@gmail.com> <23747.1308539849@alphaville.dokosmarshall.org> <87ei2ouwxk.fsf@gmail.com> <87aadcxl05.fsf@gmail.com> <7366.1308614902@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYpak-0003rZ-TJ for emacs-orgmode@gnu.org; Mon, 20 Jun 2011 21:17:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYpak-0004MG-0g for emacs-orgmode@gnu.org; Mon, 20 Jun 2011 21:17:22 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:35301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYpaj-0004M5-QY for emacs-orgmode@gnu.org; Mon, 20 Jun 2011 21:17:21 -0400 In-Reply-To: Message from Herbert Sitz of "Mon, 20 Jun 2011 17:27:39 PDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: hsitz@nwlink.com Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Herbert Sitz 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