[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug: ob-python issue in Emacs 28 [9.4.4]
From: |
Augusto Stoffel |
Subject: |
Bug: ob-python issue in Emacs 28 [9.4.4] |
Date: |
Sun, 12 Sep 2021 08:41:46 +0200 |
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
The attached patch indicates how to solve the problem. 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.)
ob-python.diff
Description: Text Data
- Bug: ob-python issue in Emacs 28 [9.4.4],
Augusto Stoffel <=