<< Back

How to set up TabPy in Tableau

1. Install Python on your machine (or server)

A popular and easy way of doing it would be to through downloading and installing Anaconda.

2. Download TabPy server

Now we need to get the TabPy module. You can do this by downloading it through GitHub or by opening up Anaconda prompt on your machine and typing:

conda install -c anaconda tabpy-server then hitting enter.

You then type y and hit enter when it asks if you want to proceed.
Here is how that looks like.

install tabpy

3. Start TabPy server

To do this we’ll want to open up Anaconda prompt and navigate to where you downloaded the TabPy files.

If downloaded TabPy from GitHub and put it on your desktop you can get the address of your folder by clicking on the name like so:

Then in Anaconda promt you would want to type cd (cd is short for change directory) then your location and hit enter.

cd C:\Users\Alexander\Desktop\TabPy

Finally would want to type startup.cmd and hit enter.

Now it should be ready to run and look like this:

Starting up TabPy

You can now minimize this window but don’t close it until you’re finished using TabPy in Tableau.

If you download TabPy using Anaconda you can type and hit enter:

cd C:\Users\*your user name*\Anaconda3\pkgs\tabpy-server-0.2-py37_1\Lib\site-packages\tabpy_server

Finally you would want to type startup.bat and hit enter.

Now it should be ready to run and look like this:

4. Connect TabPy Server to Tableau Desktop

In Tableau go to:

Help > Settings and Performance > Manage External Connection
Select TabPy
Select Localhost
Make sure the port is 9004 

Connect to tabpy
Connect to tabpy

If when you click “Test Connection” you get the message “Successfully connected to the external service.” then congratulations! You are ready to use Python in Tableau.

Alex Fridriksson

London, UK

One thought on “How to set up TabPy in Tableau

Leave a Reply

Your email address will not be published. Required fields are marked *