[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Set Python shell in Org edit buffer
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] Set Python shell in Org edit buffer |
Date: |
Thu, 28 Dec 2023 11:51:28 +0000 |
Jack Kamm <jackkamm@gmail.com> writes:
> Ihor Radchenko <yantar92@posteo.net> writes:
>
>> I think we have a misunderstanding here.
>>
>> Didn't we just discuss that C-c C-p in python is not equivalent to
>> `org-babel-python-initiate-session'?
>
> ob-python works fine with sessions started externally by `run-python'.
> And I have preserved this functionality, as I enjoy the flexibility of
> working this way.
>
> In particular, ob-python will detect when it needs to run
> `org-babel-python--setup-session', even if the session was started
> externally by `run-python'.
As long as it remains undocumented, we can break this in future (maybe
years from now, but still...). What might be more robust is to provide
an explicit "start session from Org Src buffer" command for ob-python
and re-bind `run-python' to this command in Org Src buffers.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: [PATCH] Set Python shell in Org edit buffer, (continued)
- Re: [PATCH] Set Python shell in Org edit buffer, Liu Hui, 2023/12/07
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2023/12/07
- 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/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 <=
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2023/12/29
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2023/12/31
- Re: [PATCH] Set Python shell in Org edit buffer, Jack Kamm, 2023/12/31
- 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, 2023/12/30