emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Bug: ob-python issue in Emacs 28 [9.4.4]


From: Jack Kamm
Subject: Re: Bug: ob-python issue in Emacs 28 [9.4.4]
Date: Mon, 13 Sep 2021 22:56:13 -0700

Hi Augusto,

> In Emacs 28, `python-shell-send-string' prints an additional newline
> between the prompt and output (among other things, so you can tell
> whether or not the inferior process is busy at any given time).
>
> However, this interferes with ob-python, see e.g.
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50514

Thanks for reporting this, and also for your recent improvements to
python.el.

Would you be willing to update your patch to use

(if (version< emacs-version "28") 0 1)

And add a commit message and changelog, so we can push it to master?

> As a permanent solution, I would suggest to replace org-babel-chomp
> and actually strip whitespace from both ends of the string outputted
> from the Python interpreter.  (IPython even has a configuration option
> to add extra whitespace before or after the output.)

I think this would be problematic, because then it would be impossible
to print output with leading or trailing whitespace, which it should be
possible to do.

Best,
Jack



reply via email to

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