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 22:08:45 +0000 Message-ID: References: <87vas4p4tx.fsf@otaria.sebmel.org> <87zihfxnyg.fsf@otaria.sebmel.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113b31b047c140054911a0d3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgIcG-0000yY-AJ for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 17:09:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgIcD-0002eV-4L for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 17:09:00 -0500 Received: from mail-wr0-f181.google.com ([209.85.128.181]:35404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgIcC-0002eD-Ts for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 17:08:57 -0500 Received: by mail-wr0-f181.google.com with SMTP id s27so43804560wrb.2 for ; Tue, 21 Feb 2017 14:08:56 -0800 (PST) In-Reply-To: <87zihfxnyg.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: "Sebastian P. Luque" , emacs-orgmode@gnu.org --001a113b31b047c140054911a0d3 Content-Type: text/plain; charset=UTF-8 The startup is a bit slower I find too. On the other hand I get the right output, async execution, multiple inline images, and export to jupyter notebooks with my scimax modifications. On Tue, Feb 21, 2017 at 3:53 PM Sebastian P. Luque wrote: > On Tue, 21 Feb 2017 08:58:59 -0500, > John Kitchin wrote: > > > 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. > > Thank you; unfortunately, this seems to work with Jupyter/Ipython > kernels running as a service, which adds quite an overhead to the > workflow. > > -- > Seb > > > -- 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 --001a113b31b047c140054911a0d3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The startup is a bit slower I find too. On the other hand I get the ri= ght output, async execution, multiple inline images, and export to jupyter = notebooks with my scimax modifications.=C2=A0


=
On Tue, Feb 21, 2017 at 3:53 PM Sebastian P= . Luque <spluque@gmail.com> = wrote:
On Tue, 21 Feb 2017 08:58:59= -0500,
John Kitchin <jkitchin@andrew.cmu.edu> wrote:

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

>=C2=A0 =C2=A0 =C2=A0#+END_SRC

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

Thank you; unfortunately, this seems to work with Jupyter/Ipython
kernels running as a service, which adds quite an overhead to the
workflow.

--
Seb


--
John

---= --------------------------------
Professor John Kitchin=C2=A0
Doherty= Hall A207F
Department of Chemical Engineering
Carnegie Mellon Univer= sity
Pittsburgh, PA 15213
412-268-7803
--001a113b31b047c140054911a0d3--