Installing an IDE for Python development
In Chapter 2, Configuring R with Power BI, you installed RStudio to conveniently develop your own R scripts. Did you know that, starting with version 1.4, you can write and run Python code directly in RStudio, making use of advanced tools for viewing instantiated Python objects?
Let’s see how to configure your RStudio installation to also run Python code.
Configuring Python with RStudio
In order to allow RStudio to communicate with the Python world, you need to install a package called reticulate
, which contains a comprehensive set of tools for interoperability between Python and R thanks to embedded Python sessions within R sessions. After that, it’s a breeze to configure Python within RStudio. Let’s see how to do it:
- Open RStudio and make sure the referenced engine is the latest one, in our case CRAN 4.2.2. As seen in Chapter 2, Configuring R with Power BI, you can set up your R engine in RStudio...