Re: [O] Python loops with ":results output"
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. Luquewrote: > 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
Re: [O] Python loops with ":results output"
On Tue, 21 Feb 2017 08:58:59 -0500, John Kitchinwrote: > 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
Re: [O] Python loops with ":results output"
On Mon, Feb 20, 2017 at 11:04 PM, Sebwrote: > #+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
[O] Python loops with ":results output"
Hello, Is it not possible to avoid having the continuation triple dots in the first output line when capturing output from a Python loop? ------ 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 --- --- Thanks for any advice, -- Seb