Spaces:
Sleeping
Sleeping
import tableau_api_lib | |
import looker_sdk | |
def generate_dashboard(model): | |
# Create Tableau dashboard | |
tableau_api = tableau_api_lib.TableauApi() | |
dashboard = tableau_api.create_dashboard("My Dashboard") | |
worksheet = dashboard.add_worksheet("My Worksheet") | |
worksheet.add_data_source(model) | |
# Create LookerStudio dashboard | |
looker_sdk.init("my_instance_url", "my_client_id", "my_client_secret") | |
looker_dashboard = looker_sdk.Dashboard("My Dashboard") | |
looker_dashboard.add_element(looker_sdk.Text("My Text")) | |
looker_dashboard.add_element(looker_sdk.Chart(model)) |