Tamas Foldi / Tableau Zen Master
Tableau supports a set of functions that you can use to pass expressions to external services for integration with R, MATLAB, and Python.
TL;DR
Tableau "Table" calculations in R or Python
https://github.com/tableau/TabPy
Enrich dashboards with live data from web services or non-supported databases
import tabpy_client
from forex_python.converter import CurrencyRates
c = CurrencyRates()
client = tabpy_client.Client('http://localhost:9004/')
def convert_to(target,value):
lst= []
rate= c.get_rate('USD',target[0])
for i in range(0,len(value)) :
lst.append(value[i]*rate)
return lst
client.deploy('convert_to',convert_to,'convert from USD', override = True)
The Extensions API lets you do more without leaving Tableau. Build Tableau extensions that can interact and communicate with Tableau, and embed them directly in your workbooks.
https://github.com/tableau/extensions-api
https://github.com/tableau/extensions-api/issues/61