From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Ochs Subject: Re: Using Org and eev together - problem with source blocks Date: Sun, 10 Nov 2019 12:36:04 -0200 Message-ID: References: <87zhh4ypzx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f78e270596feefa7" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42833) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iToKC-0001QB-5T for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 09:36:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iToKA-0006EG-Ep for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 09:36:20 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:42728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iToKA-0006EB-92 for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 09:36:18 -0500 Received: by mail-pf1-x432.google.com with SMTP id s5so8572267pfh.9 for ; Sun, 10 Nov 2019 06:36:16 -0800 (PST) In-Reply-To: <87zhh4ypzx.fsf@gmail.com> 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: Ken Mankoff Cc: Alan Schmitt , Org Mode --000000000000f78e270596feefa7 Content-Type: text/plain; charset="UTF-8" Changing the Python source block to #+BEGIN_SRC python :output results def square (x): return x*x print(square(5)) #+END_SRC didn't change anything here, neither with emacs24 nor with git emacs, and I grepped (recursively) for ":output" in the directory where I cloned https://code.orgmode.org/bzg/org-mode.git and only found references to ":output-dir" - except for a single occurrence of ":output" in contrib/lisp/ob-sclang.el... Are you sure that you wrote it correctly? Cheers, E. =) http://angg.twu.net/#eev On Sun, 10 Nov 2019 at 08:39, Ken Mankoff wrote: > > On 2019-11-10 at 02:54 +01, Eduardo Ochs wrote... > > #+BEGIN_SRC python > > def square (x): > > return x*x > > > > print(square(5)) > > #+END_SRC > > > > [...] when I run the Python block with C-c C-c I always get a results > > block like this (without the indentation): > > > > #+RESULTS: > > : None > > > > What am I doing wrong? I expected an output of "25"... =( > > Adding ":output results" makes this work for me, but I'm not using emacs24. > > -k. > --000000000000f78e270596feefa7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Changing the Python source block to

#+BEGIN_SRC pyt= hon :output results
def square (x):
=C2=A0 =C2=A0 return x*x

p= rint(square(5))
#+END_SRC

didn't change anything here, neithe= r with emacs24 nor with git emacs,
and I grepped (recursively) for "= ;:output" in the directory where I
cloned https://code.orgmode.org/bzg/org-mode.git = and only found
references to ":output-dir" - except for a sing= le occurrence of
":output" in contrib/lisp/ob-sclang.el...
=
Are you sure that you wrote it correctly?

=C2=A0 Cheers, E. =3D)=
=C2=A0 http://angg.twu.net/#eev



On 2019-11-10 at 02:54 +01, Eduardo Ochs <eduardoochs@gmail.com> wrote...
> #+BEGIN_SRC python
> def square (x):
>=C2=A0 =C2=A0 =C2=A0return x*x
>
> print(square(5))
> #+END_SRC
>
> [...] when I run the Python block with C-c C-c I always get a results<= br> > block like this (without the indentation):
>
>=C2=A0 =C2=A0#+RESULTS:
>=C2=A0 =C2=A0: None
>
> What am I doing wrong? I expected an output of "25"... =3D(<= br>
Adding ":output results" makes this work for me, but I'm not = using emacs24.

=C2=A0 -k.
--000000000000f78e270596feefa7--