LyX 2.4.0 & Jupyter Notebooks
Bernt Lie
Bernt.Lie at usn.no
Wed Apr 10 12:11:08 UTC 2024
> knitr integration...
Thanks.
I don't use R, so I guess knitr is not useful to me. [In in the JU corner of Jupyter...] There is also Quarto which is developed in the R community, although it can also be used with other languages. Don't know how Quarto scales to large documents, though... My experience is that Jupyter Notebooks start to become slow with documents in the order of some 30 pages (i.e., with plenty of plots), while LyX is still quick with documents in the order of 1000 pages.
-B
-----Original Message-----
From: lyx-users <lyx-users-bounces at lists.lyx.org> On Behalf Of Pavel Sanda
Sent: Wednesday, April 10, 2024 11:05 AM
To: lyx-devel at lists.lyx.org; lyx-users <lyx-users at lists.lyx.org>
Subject: Re: LyX 2.4.0 & Jupyter Notebooks
On Tue, Apr 09, 2024 at 11:37:48AM -0400, Richard Kimberly Heck wrote:
> On 4/9/24 08:48, Bernt Lie wrote:
> >Is there a way to import Jupyter Notebooks into LyX 2.4.0 (when v. 2.4.0 is released)?
> >
> >I'm particularly interested in the possibility to...
> >
> >* link the notebooks into LyX so that I always get the latest
> >version/computations in the notebook, i.e., preferably not a static
> >import
> >
> >* inclusion of mark-up text with headlines, math, etc.
> >
> >* inclusion of input and output cells, with figures, etc.
> >
> >* linked-in notebooks would be multipage. Perhaps it should be possible to embed the notebooks in some theorem-like environment.
> >
> >OK -- don't know if this is possible, but it would go a long way towards getting a literal programming environment.
>
> The most plausible way to do this would be to use an external inset.
> That's the way that Lilypond files (music) are included, for example.
> Such insets are user definable. Basically, you tell LyX how to convert
> the file to something LaTeX can process. This is discussed in section
> 7.1 of the Embedded Objects manual. You can use the existing xtemplate
> files as a starting point, too.
You might also want to check how knitr integrates into lyx (basically embedding R code into lyx).
Pavel
--
lyx-users mailing list
lyx-users at lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users
More information about the lyx-users
mailing list