The basic Tableau-to-R, -Python, and -MATLAB architecture is quite simple: Tableau pushes data to RServe, TabPy, or MATLAB, respectively, and then retrieves the results. Naturally, whether you are viewing a workbook on Tableau Desktop or via Tableau Server, if you wish to run R, Python, and MATLAB calculations, then Rserve, TabPy, or MATLAB, must be accessible.
See details in the following screenshot:
For a proper understanding of the architecture, let's also look at the Tableau/R workflow. Terms used in the following screenshot, which you may be unfamiliar with, will be discussed in this chapter:
This preceding screenshot can be used in the same way for Python and MATLAB.