-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Julia, R and Python code in seperate Malt processes #224
Comments
So cells of different languages would happen to just be rendered in the same output document, but aside from that they would be evaluated in language-specific processes? |
Yes that would help a lot. We thought we could have one QuartoNotebookWorker process per language and still reuse all of the machinery. Maybe this would have to be set by a flag in the notebook header. |
Seems potentially doable. I'm marking this as up for grabs since we won't be actively working on this ourselves (PumasAI) for the foreseeable future. |
Could you give us some pointers where we best launch these processes? I might give it a try because this would be really helpful for multi language tutorials. |
You'd have to start making this a vector QuartoNotebookRunner.jl/src/server.jl Line 4 in bc028e0
But this seems to be a lot of complication for little gain to me, as in principle the interop works, there's just conflicts between the different packages that they could potentially solve. QuartoNotebookRunner is not the only package where these conflicts would manifest so the larger ecosystem could benefit if this was solved somehow at the root instead. I also think that interpolation from the Julia side to the R/Python side would get more complicated with separate processes. Everything is more complicated with multiple processes 😄 |
There isn't even Python support in a release, it's only a very PoC PR, so it definitely should not be tackled until Python is a well supported feature of this package @felixcremer.
Agreed, that would be the better solution here rather than adding another feature to this package just to get around problems in the ecosystem. |
We are trying to run Julia, Python and R code in Quarto without any interaction between the different language cells.
Unfortunately due to the usage of shared libraries in different versions this does not work, see JuliaPy/PythonCall.jl#397.
Could we run the code from different languages in separate Malt processes and thereby circumventing the interaction between the languages.?
@meggart who had the initial idea.
The text was updated successfully, but these errors were encountered: