On Saturday, October 26, 2024 at 7:42:21 AM UTC-5 Edward K. Ream wrote: > The remaining rough edges involve creating .ipynb files and their corresponding @jupytext nodes.
I have just completed all planned work on PR #4119 <https://github.com/leo-editor/leo-editor/pull/4119>: - Fixed a bug that prevented writing non-existent .ipynb files. This bug probably caused great confusion. - Added support for *@data jupyter-prefix*. This support required 5 new lines of code. - Added *@data jupyter-prefix* to LeoSettings.leo. The postscript lists its contents. Leo will write these data (and set the body text of the @jupytext node) when writing an empty @jupytext file. *Summary* The "ekr-4117-pair-jupyter-files" branch should be safe to use. Please test this branch and report any problems immediately. I plan to merge this branch into "devel" tomorrow. Please keep those comments and questions coming. Edward P.S. Here are the contents of @data jupyter-prefix in LeoSettings.leo. They came from a minimal .ipynb file, created by Jupyter. # Leo created this prefix from @data jupyter-prefix. # Jupyter's 'New Python Text Notebook with Percent Format` created this file. # --- # jupyter: # jupytext: # formats: py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.16.4 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # %% EKR -- 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 visit https://groups.google.com/d/msgid/leo-editor/e887cf9b-3478-4572-9dab-5ec9d641e2cen%40googlegroups.com.
