How to integrate Python with Tableau - CNDRO Website
post-template-default,single,single-post,postid-1863,single-format-standard,bridge-core-2.9.4,qode-page-transition-enabled,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,footer_responsive_adv,hide_top_bar_on_mobile_header,qode-child-theme-ver-1.0.0,qode-theme-ver-27.8,qode-theme-bridge,qode_header_in_grid,wpb-js-composer js-comp-ver-6.7.0,vc_responsive,elementor-default,elementor-kit-2634

How to integrate Python with Tableau

It is no news that Tableauas a business intelligence software, has made data visualization completely easy for both programmers and non-programmers. Python, on the other hand, is a programming language widely used in the world of data and it is most popular for its strengths in predictive analysis and machine learningIf somehow, we could possibly merge these two data analysis power tools together, integrate python with tableau; wouldn’t that result in a dream data science team for every organization? 

 In this article, I am going to walk you through how to leverage Python to enhance Tableau’s capabilities and use Tableau to visualize model outputs from Python. This integration completely eradicates the back and forth process of using Tableau to visualize data, going back to Python to structure the model, and bringing it back to Tableau again.
All of these can be done in one place using the Tableau + Python server, also known as the Tabpy serverSo, sit tight, and let’s get right to it. 

To integrate Python with Tableau Desktop, there are, of course, a few steps that must be followed: 

Step 1: Install TabPy  

  1. Download and install Anaconda. To do this, go to Downloading Anaconda automatically installs Python and Pip for you. This will save you from the stress of trying to configure parameters for Tabpy. 
  2. Open the anaconda prompt, type pip install tabpy-server, hit the “enter” button on your keyboard to install the TabPy server. This may take 3 to 4 minutes. 
  3. Still, on the anaconda prompt, type pip install tabpyclienthit the “enter” button on your keyboard to install the TabPy client. This may take 1 to 2 minutes. 
  4. Next, type pip install tabpy to install TabPy. This step is mostly omitted but it is quite necessary, to avoid bugs later into the integration. This may take about a minute.
  5. Finally, type tabpy on the anaconda prompt and “enter”. TabPy starts and listens on port 9004.

integrate python with tableau

Step 2: Integrate TabPy with Tableau Desktop 

Now that we have the TabPy server up and running, the next thing to do is to integrate it with Tableau Desktop. To do this, follow these steps: 

  1. Launch Tableau Desktop. 
  2. Select Help” in the top menu bar to display a dropdown menu. 
  3. Click “Settings and Performance” in the dropdown menu displayed. 
  4. Select the “Manage External Services Connections” option to display a popup. 

  1. In the popup displayed, fill in the following details:

            Host Name: Local Host          Port: 9004 

Select the Test Connection button to integrate TabPy with Tableau Desktop. 

Once connection is successful, it only means that you have successfully integrated Python with Tableau using the TabPy server. 

If you find this walkthrough helpful, please share. You can also leave a comment in the comments section if you have any question(s). 

No Comments

Post A Comment