From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Python loops with ":results output" Date: Tue, 21 Feb 2017 08:58:59 -0500 Message-ID: References: <87vas4p4tx.fsf@otaria.sebmel.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1cd31a252c4d05490ac828 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgAy6-0002wA-U6 for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 08:59:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgAy5-00046W-JN for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 08:59:02 -0500 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:33076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgAy5-000469-Bk for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 08:59:01 -0500 Received: by mail-wr0-x234.google.com with SMTP id 97so3969100wrb.0 for ; Tue, 21 Feb 2017 05:59:00 -0800 (PST) In-Reply-To: <87vas4p4tx.fsf@otaria.sebmel.org> 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" To: Seb Cc: "emacs-orgmode@gnu.org" --94eb2c1cd31a252c4d05490ac828 Content-Type: text/plain; charset=UTF-8 On Mon, Feb 20, 2017 at 11:04 PM, Seb wrote: > #+BEGIN_SRC python :session :results output :exports results > for i in range(3): > print("Iter {0}".format(i)) > > #+END_SRC > Try using ob-ipython. It doesn't have that issue for me. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --94eb2c1cd31a252c4d05490ac828 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Mon, Feb 20, 2017 at 11:04 PM, Seb <spluque@gmail.com> wr= ote:
#+BEGIN_SRC python :session :results output :exports resu= lts
for i in range(3):
=C2=A0 =C2=A0 print("Iter {0}".format(i))

#+END_SRC

Try using ob-ipython. It doesn't = have that issue for me.


<= div dir=3D"ltr">
John

-------------------------= ----------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Departm= ent of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA= 15213
412-268-7803
--94eb2c1cd31a252c4d05490ac828--