Resources for creating Tableau Visualizations through Python

less than 1 minute read

I have not personally tried to create Tableau visualizations through Python, but there does exist a python library called TabPy.

This library is currently being developed by the Tableau team, and is under Beta/development.

tableau/TabPy

Execute Python code on the fly and display results in Tableau visualizations - tableau/TabPy

“Man wearing headphones at desk with window view of sunset in background” by [Simon Abrams](https://unsplash.com/@flysi3000?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)

TabPy Documentation

  1. https://community.tableau.com/thread/236479

  2. https://www.tableau.com/about/blog/2017/1/building-advanced-analytics-applications-tabpy-64916

  3. How to get Started https://github.com/tableau/TabPy/blob/master/client.md

Security Considerations

The following security issues should be kept in mind as you use TabPy with Tableau:

The data channel between Tableau and TabPy is currently not encrypted.

TabPy currently does not use authentication.

Python scripts can contain code which can harm security on the server where the TabPy is running. For example:

Access file system (read/write)

Install new Python packages which can contain binary code

Execute operating system commands

Open network connections to other servers and download files

Unofficial Python and Tableau Library(ies)

  1. http://tableau.github.io/document-api-python/docs/