Setting up Python in Tableau Desktop

by Dominic Emm

Python is one of the most popular in the world and here’s how you can begin to use it to enhance your Tableau skills.

First off you will need to install Anaconda which is a distribution of Python and R programming languages aimed to be a simplified package for scientific computing.

Once you have downloaded you will need to open up the Anaconda prompt this is where we will be installing TabPy from.

In the Anaconda prompt enter pip install tabpy this will begin the download process for TabPy.

Once this has installed the packages successfully then you can enter tabpy to start up a local instance of the TabPy server. When the instance is running the console will look like this:

Once that is running we now need to set up the connection inside of Tableau Desktop.

In Tableau Desktop navigate to Help > Settings and Performance > Manage External Connection and then select TabPy.

Once in the TabPy Connection window input localhost as the server and 9004 as the port and then press test connection to see if the connection was successful.

And now you’re ready to start using Python in Tableau Desktop!

Avatar

Dominic Emm

Fri 31 Dec 2021

Thu 30 Dec 2021

Wed 29 Dec 2021

Mon 13 Sep 2021