emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eduardo Ochs <eduardoochs@gmail.com>
To: Ken Mankoff <mankoff@gmail.com>
Cc: Alan Schmitt <alan.schmitt@polytechnique.org>,
	Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Using Org and eev together - problem with source blocks
Date: Sun, 10 Nov 2019 12:36:04 -0200	[thread overview]
Message-ID: <CADs++6h-E2YYrR-ueOhUqvYZ80kHrF-VWXwPXgPoFZDVd7dYBg@mail.gmail.com> (raw)
In-Reply-To: <87zhh4ypzx.fsf@gmail.com>

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

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 <mankoff@gmail.com> wrote:

>
> On 2019-11-10 at 02:54 +01, Eduardo Ochs <eduardoochs@gmail.com> 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.
>

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

  reply	other threads:[~2019-11-10 14:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-10  1:54 Using Org and eev together - problem with source blocks Eduardo Ochs
2019-11-10 10:39 ` Ken Mankoff
2019-11-10 14:36   ` Eduardo Ochs [this message]
2019-11-10 16:13     ` Ken Mankoff
2019-11-11 14:30       ` Eduardo Ochs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADs++6h-E2YYrR-ueOhUqvYZ80kHrF-VWXwPXgPoFZDVd7dYBg@mail.gmail.com \
    --to=eduardoochs@gmail.com \
    --cc=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mankoff@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).