Intro to Tableau Analytics Extensions

Data

Intro to Tableau Analytics Extensions

Tableau supports a set of functions that you can use to pass expressions to analytics extensions for integration with R, Python and Einstein Discovery. These analytics extensions can receive data from Tableau in real time and return it back after it has been reshaped, transformed or augmented. This facilitates dynamic data visualization exploration. Today, I will be focusing on TabPy, Tableau’s Python server allowing Python script usage inside Tableau calculated fields.

What is TabPy?

First off, to those who are unfamiliar: Python is a widely used high-level programming language for general-purpose programming. By sending Python commands to an analytics extension, you can do things like predicting customer churn or running sentiment analysis. In addition, the user can use Python for data cleaning and predictive algorithms inside Tableau.

In the use case blog post later in this series, I demonstrate how to use this tool to assist in multi-variate decision making in a Tableau Dashboard. In a later blog post detailing how I built the dashboard, I write about how to incorporate TabPy into the project natively in Tableau.

Tableau Python Server (TabPy) is part of Tableau’s expanding range of new features. To install TabPy, visit this GitHub page.

On that link, scroll down to the ReadMe file, where you will see a list of TabPy documentation files:

Bullet point list of TabPy Documentation resources.

These resources detail everything you will need to install and configure your own server! Credit goes to the multiple public contributors on that page, but it is a great resource.

To read more about the possibilities of Python in Tableau, see the blog post, “How to build advanced analytics applications with TabPy” from Tableau.

Getting Started

To connect to an analytics extension in Tableau:

  1. Open Tableau Desktop and your chosen workbook
  2. Hover over the furthest right tab, “Help”
  3. Hover over “Settings and Performance,” about two-thirds of the way down the menu
  4. Click on “Manage Analytics Extension Connection,” also about two-thirds of the way down the menu
  5. You should be viewing this menu:
    Manage Analytics Extension Connection menu
  6. Select the analytics extension you want to connect to.

For Einstein Discovery, log in with your Salesforce credentials. For the other three options, you will need to configure your analytics service, i.e. enter the host and portal information from the TabPy server that you set up (see GitHub for reference):

Manage Analytics Connection Menu, manually inputting hostname and port

Once connected, you are free to use Python script in your calculated fields by following certain steps detailed in this blog post from Tableau.

TabPy Use Cases

In the Building InterUrban Blog, I will describe how we incorporated the use of the TabPy analytics extension into our workbook. As mentioned above, we will be using the python code to help build our pareto frontier to optimize the selection process.

Another Tableau resource here, if you’re interested!

KeepWatch by InterWorks

Whether you need support for one platform or many, our technical experts have you covered.

More About the Author

Wesley Cannatti

BI Intern
Why Are My Power BI Locations Mapping My Data Incorrectly? It can be a very confusing or frustrating experience whenever a technical tool doesn’t do what you want it to do, or even what it ...
A Guide to Power BI Desktop for Tableau Developers You may have the job title of data analyst, or you may work in HR or sales. Regardless, the versatility of modern data visualization ...

See more from this author →

InterWorks uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Review Policy OK

×

Interworks GmbH
Ratinger Straße 9
40213 Düsseldorf
Germany
Geschäftsführer: Mel Stephenson

Kontaktaufnahme: markus@interworks.eu
Telefon: +49 (0)211 5408 5301

Amtsgericht Düsseldorf HRB 79752
UstldNr: DE 313 353 072

×

Love our blog? You should see our emails. Sign up for our newsletter!