[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: |
Wed, 6 Dec 2023 12:41:43 +0800 |
Ihor Radchenko <yantar92@posteo.net> 于2023年12月5日周二 19:48写道:
>
> Liu Hui <liuhui1610@gmail.com> writes:
>
> > 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.
>
> Makes sense.
> I think we may drop a note about this new feature in ORG-NEWS.
Thanks, I have added it in the attached patch.
> > 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.
>
> I do not see it being used much, except
> https://github.com/frederic-santos/ob-ess-julia and
> https://github.com/alphapapa/outshine
> Although, ob-ess-julia is deprecated and outshine only mentions this in
> "TODO" comment.
>
> To be safe, I'd prefer to mark `org-src-associate-babel-session'
> obsolete and mention the removal in ORG-NEWS, pointing users to
> `org-babel-edit-prep:..' instead.
Fine by me.
0001-Set-Python-shell-in-Org-edit-buffer.patch
Description: Text Data
- [PATCH] Set Python shell in Org edit buffer, Liu Hui, 2023/12/05
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2023/12/05
- Re: [PATCH] Set Python shell in Org edit buffer,
Liu Hui <=
- Re: [PATCH] Set Python shell in Org edit buffer, Ihor Radchenko, 2023/12/06
- Re: [PATCH] Set Python shell in Org edit buffer, Liu Hui, 2023/12/06
- 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/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