Skip to main content
100%

Gist 7341a6a9b561ea0d52ce422e6c2fb69f

✓ Published0🌍 Public
Aantichaos
Last edited Jun 8, 2022
Created on Jun 8, 2022

This example shows how to programmatically export high-resolution images of Tableau workbook views, specifically filtering a view to display data for Belgium. The script uses the `tableauserverclient` (TSC) Python library to authenticate with a personal access token, iterate through workbooks, and locate a workbook named “Fiche Generator.” It then populates the workbook’s views, sets an image request option with high resolution and a filter on the “SelectedCountry” field, and saves each rendered view as a PNG file locally. The code demonstrates the TSC API’s `populate_image` method and `ImageRequestOptions` for customized view rendering.

AI-generated description

Similar vizzes