Issue #4117 <https://github.com/leo-editor/leo-editor/issues/4117> suggests 
pairing .ipynb files with Leo nodes.
I have put considerable effort into revising the first comment of that 
issue.

Imo, the acid test is whether Leo can run jupytext as a script.
That's likely because jupytext mostly just munges code.

And success! The following Leonine script works as expected:

from jupytext.cli import jupytext as cli
args = ['--to', 'py:percent', r'c:\test\Notebooks-intro.ipynb']
cli(args)

The output is:

[jupytext] Reading c:\test\Notebooks-intro.ipynb in format ipynb
[jupytext] Updating the timestamp of 'c:\test\Notebooks-intro.py'

Imo, this prototype script demonstrates that issue #4117 is feasible!

Edward

-- 
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/95e1cf8d-23d1-4f5a-8798-3047210a1870n%40googlegroups.com.

Reply via email to