emacs-orgmode
[Top][All Lists]
Advanced

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

[PATCH] Set Python shell in Org edit buffer


From: Liu Hui
Subject: [PATCH] Set Python shell in Org edit buffer
Date: Tue, 5 Dec 2023 18:18:59 +0800

Hi,

When editing python src block using C-c ', the python shell is not set
in Org edit buffer according to the :session header argument of the
block. Consequently, commands such as python-shell-send-region cannot
send python code to the correct python process. To address this, the
attached patch defines org-babel-edit-prep:python in ob-python.el.

In addition, I tried to use org-src-associate-babel-session at first,
but found it doesn't work because it is called when enabling
org-src-mode, where org-src--babel-info is still nil. It seems it has
stopped working since 203bf5870, and I think it is safe to remove it
and related stuffs to avoid confusion.


Best,
Liu Hui

Attachment: 0001-Set-Python-shell-in-Org-edit-buffer.patch
Description: Text Data

Attachment: 0001-Remove-org-src-babel-configure-edit-buffer-and-relat.patch
Description: Text Data


reply via email to

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