emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Org Babel says 1 + 1 in Python is None


From: Dr. Arne Babenhauserheide
Subject: Re: Org Babel says 1 + 1 in Python is None
Date: Sat, 07 Sep 2024 10:12:07 +0200

Rudolf Adamkovič <rudolf@adamkovic.org> writes:

> Today, I decided to start using Python in Org.
>
> (1) I read in "WORG":
>
>   :results {output, value}: [...] Value results are the value of the
>   last expression evaluated in the code block. Value mode is the default
>   (as with other languages).

In the org-mode documentation I read:

    For languages like Python, an explicit return statement is mandatory when 
using ‘:results value’.
    https://orgmode.org/manual/Results-of-Evaluation.html

So I think WORG needs to be fixed.

Can you send a patch?
https://git.sr.ht/~bzg/worg

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]