Ok, it seems jupytext is the right choice. It can pair notebook with python 
file. I just use Leo to handle the python files :-D Great!

https://github.com/mwouts/jupytext#paired-notebooks


On Monday, November 27, 2023 at 11:21:52 AM UTC+8 HaveF HaveF wrote:

> There used to be some support for Jupyter notebooks, but over time it 
>> became clear that it didn't work well.  You could read them but not 
>> interact or modify them effectively.  Since you can read them better in a 
>> browser, the support was removed.
>>
>  
> I see, Thomas. Reading the notebook is fine. But it lacks the clone 
> function of leo. Since there is always some code that is generic for some 
> typical analysis (but I don't have it abstracted into functions), I 
> wondered if I could use Leo's clone feature to extract out the code 
> separately so that the content of the code paragraphs could be synchronized 
> after each change. At the moment, it seems that there is no way to solve 
> this problem, and perhaps the practical way is to abstract this content 
> into functions to manage it.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9481de6e-1f41-4a11-b93a-49421e5146b9n%40googlegroups.com.

Reply via email to