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, 9 Dec 2023 21:36:27 +0800

Ihor Radchenko <yantar92@posteo.net> 于2023年12月9日周六 18:29写道:
>
> Liu Hui <liuhui1610@gmail.com> writes:
>
> >> 2. Check the new variable and attempt to run
> >>    `org-babel-<lang>-associate-session' in org-src-mode definition.
> >
> > I think associating the edit buffer with some session doesn't require
> > starting the session, which is at least feasible for ob-python. When
> > editing python src block, users can use C-c C-p to start the session
> > themselves for evaluating code. So it would be nice to allow a value
> > of 'associate in the customization, which means just running
> > `org-babel-<lang>-associate-session'.
>
> 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'?
>
> Also, by "start a new session" I meant "start a new session if there is
> none running already; if a session is already running, unconditionally
> associate Org Src buffer with that running session".

I just want to set 'python-shell-buffer-name' in the edit buffer
according to the :session header and don't need to start the session
even if the session doesn't exist. It may be not a real association by
your definition, so my previous comment is not relevant any more.



reply via email to

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