With the help of the reticulate package and knitr package, we are able to
now embed python and R code in lyx in a reproducible manner. But the
problem is that we have to compile the file every time we need to see the
execution result of the python/R code.  In jupyter notebook, this is not
necessary and we can run the code chunks independently.


So the question is whether its possible to implement a similar
functionality in future lyx versions? Briefly, the feature could be
abstracted in the following manner:

1. Create a procedure to copy the code in the ERT/code chunks, open a new
subprocess, in which runs the python/R REPL and paste the code into a
subprocess.
2. Run the code.
3. Return the result in the a panel/window.
4. Closed the subprocess.

Is something like this possible?

Reply via email to