1 of 1 people found this helpful
A good starting point for using Python is in Tableau Community Document below:
Tableau integration with Python has two main components:
- Tableau (Desktop or Server) 10.1 or higher
- TabPy (short for Tableau Python Server, a web server that can execute Python code)
Starting with Tableau 10.1, all you need to do is to point it to a TabPy server instance and you’re ready to start writing Python code.
Once the configuration is done, Python can be used in calculated fields in Tableau.
Regarding the Configuration:
To run Python code in your Tableau calculated fields, enter the address and port number for a TabPy server instance in Tableau.
From Tableau Desktop, select Help > Settings and Performance > Manage External Service Connection.
On Tableau Server, use the tabadmin command line utility to configure a TabPy connection.
It is not necessary to install TabPy on the Tableau Server or Desktop computer - all that is required is a pointer to a TabPy server instance.
You can find detailed instructions on how to get started with TabPy (including installation, how to run code in Tableau, model deployment and reuse) on Tableau Github site below.
There are installer scripts for Windows, Mac and Linux that automatically install the packages and their dependencies and initializes the server for you, so you can quickly get up and running.
It works on Desktop and Server but not on Public, Online or Tableau Reader.
Please note that TabPy is an open source project on GitHub and Tableau will manage support mostly through Github and Tableau forums, as all Tableau projects on Github.
More information about Configuration help are documented in the article below.
Hope this help.