Reticulate embeds a Python session within your R session, enabling seamless, high-performance interoperability. This reference for reticulate and its description did not help: The reticulate package provides a comprehensive set of tools for interoperability between Python and R. The RStudio 1.4 release introduces a number of features that will further improve the Python editing experience in RStudio: The default Python interpreter to be used by RStudio /. What I understand now: If you have projects with Python only, use a Python editor. Thus, RStudio does not switch the editor to a native Python-IDE (which was my expectation) like VScode or others. Run lines or a selection using "run" (Ctrl + Enter) => Starts Python-console and stays there Reading in the internet I found that RStudio supports python scripting and, with a proper interpreter, it can be used to work with Python inside RStudio. When you run Python code within RStudio, there is an R-wrapper for Python translating the code to R. It seems, reticulate::repl_python() forces the quit first.
0 Comments
Leave a Reply. |