emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] Set Python shell in Org edit buffer


From: Liu Hui
Subject: Re: [PATCH] Set Python shell in Org edit buffer
Date: Sat, 30 Dec 2023 15:08:05 +0800

Jack Kamm <jackkamm@gmail.com> 于2023年12月30日周六 06:20写道:
>
> Liu Hui <liuhui1610@gmail.com> writes:
>
> > But it is indeed possible that two sessions are inconsistent, if users
> > intend to have different org-babel-python-command and
> > python-shell-interpreter, which are used by
> > `org-babel-python-initiate-session' and `run-python', respectively.
>
> I have just proposed this patch, which will reduce this discrepancy by
> having ob-python sessions use the same interpreter as `run-python' by
> default:
>
> 87edf41yeb.fsf@gmail.com/T/#u">https://list.orgmode.org/87edf41yeb.fsf@gmail.com/T/#u

Thanks! It is a nice change IMO.

> Additionally, we could set `python-shell-interpreter(-args)' in
> `org-babel-edit-prep:python' to make `run-python' in Org Src buffer use
> the same interpreter as :python header or customized
> `org-babel-python-command'.

Agree. I think it can address the concern about inconsistent sessions.



reply via email to

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