emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Python loops with ":results output"
@ 2017-02-21  4:04 Seb
  2017-02-21 13:58 ` John Kitchin
  0 siblings, 1 reply; 4+ messages in thread
From: Seb @ 2017-02-21  4:04 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Is it not possible to avoid having the continuation triple dots in the
first output line when capturing output from a Python loop?

---<--------------------cut here---------------start------------------->---
Export artifact:

#+BEGIN_SRC python :session :results output :exports results
for i in range(3):
    print("Iter {0}".format(i))

#+END_SRC

#+RESULTS:
: 
: ... Iter 0
: Iter 1
: Iter 2
---<--------------------cut here---------------end--------------------->---

Thanks for any advice,

-- 
Seb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Python loops with ":results output"
  2017-02-21  4:04 Python loops with ":results output" Seb
@ 2017-02-21 13:58 ` John Kitchin
  2017-02-21 20:56   ` Sebastian P. Luque
  0 siblings, 1 reply; 4+ messages in thread
From: John Kitchin @ 2017-02-21 13:58 UTC (permalink / raw)
  To: Seb; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 487 bytes --]

On Mon, Feb 20, 2017 at 11:04 PM, Seb <spluque@gmail.com> 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

[-- Attachment #2: Type: text/html, Size: 1162 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Python loops with ":results output"
  2017-02-21 13:58 ` John Kitchin
@ 2017-02-21 20:56   ` Sebastian P. Luque
  2017-02-21 22:08     ` John Kitchin
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian P. Luque @ 2017-02-21 20:56 UTC (permalink / raw)
  To: emacs-orgmode

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> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Python loops with ":results output"
  2017-02-21 20:56   ` Sebastian P. Luque
@ 2017-02-21 22:08     ` John Kitchin
  0 siblings, 0 replies; 4+ messages in thread
From: John Kitchin @ 2017-02-21 22:08 UTC (permalink / raw)
  To: Sebastian P. Luque, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

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 <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> 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

[-- Attachment #2: Type: text/html, Size: 2122 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-21 22:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-21  4:04 Python loops with ":results output" Seb
2017-02-21 13:58 ` John Kitchin
2017-02-21 20:56   ` Sebastian P. Luque
2017-02-21 22:08     ` John Kitchin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).