[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.
- Re: [PATCH] Set Python shell in Org edit buffer, (continued)
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2023/12/08
- Re: [PATCH] Set Python shell in Org edit buffer, Liu Hui, 2023/12/08
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2023/12/09
- Re: [PATCH] Set Python shell in Org edit buffer, Liu Hui, 2023/12/09
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2023/12/27
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2023/12/28
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2023/12/27
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2023/12/28
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2023/12/29
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2023/12/29
- Re: [PATCH] Set Python shell in Org edit buffer,
Liu Hui <=