[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50514: 28.0.50; org inline call to python src block req C-g to break
From: |
Augusto Stoffel |
Subject: |
bug#50514: 28.0.50; org inline call to python src block req C-g to break |
Date: |
Wed, 15 Sep 2021 08:28:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On Tue, 14 Sep 2021 at 22:20, "Barton, Mark" <Mark.Barton@disney.com> wrote:
> On Sep 14, 2021, at 12:31 PM, Augusto Stoffel <arstoffel@gmail.com> wrote:
>
> Great. Then we'll fix the spurious line break problem, which is indeed
> on the Emacs side. But the other is due to ob-python, which may send
> code to the interpreter before the first prompt is printed (this can be
> checked through the variable 'python-shell--first-prompt-received').
>
> Since I don't use org-babel, I'm afraid I can't help with that part…
>
> So I found if I extend the sleep-for in ob-python from 10 ms to 90 ms, my
> initialization problem is
> “fixed”. I’m not sure why it would take longer than it did before the
> changes. Possibly an
> interaction with the antivirus software???
This was probably a problem all along, but went unnoticed until now
because 'python-shell-send-string' used to be simpler.
> I have not tried other values, but may be there is a better
> method for ob-python to determine it is safe than using a sleep-for.
One thing that might work is to block until the shell is ready with something
like
(run-python)
(with-current-buffer *the-shell-buffer*
(while (not python-shell--first-prompt-received)
(accept-process-output (get-buffer-process (current-buffer)))))
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, (continued)
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Barton, Mark, 2021/09/12
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Augusto Stoffel, 2021/09/12
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Barton, Mark, 2021/09/12
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Barton, Mark, 2021/09/12
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Augusto Stoffel, 2021/09/14
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Barton, Mark, 2021/09/14
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Augusto Stoffel, 2021/09/14
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Barton, Mark, 2021/09/14
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Augusto Stoffel, 2021/09/14
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Barton, Mark, 2021/09/14
- bug#50514: 28.0.50; org inline call to python src block req C-g to break,
Augusto Stoffel <=
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Augusto Stoffel, 2021/09/14
- bug#50514: 28.0.50; org inline call to python src block req C-g to break, Lars Ingebrigtsen, 2021/09/15