Complete the code to enable the Data Interpreter in Tableau.
worksheet.DataInterpreter.[1] = True
In Tableau, the property to turn on the Data Interpreter is enable.
Complete the code to check if Data Interpreter is currently enabled.
if worksheet.DataInterpreter.[1]:
The correct property to check if Data Interpreter is on is enabled.
Complete the code to properly disable the Data Interpreter.
worksheet.DataInterpreter.[1] = False
The Data Interpreter property is set directly; it is not a method. So use enable as a property, not a method.
Fill both blanks to correctly toggle the Data Interpreter based on a condition.
if user_choice == 'on': worksheet.DataInterpreter.[1] = True else: worksheet.DataInterpreter.[2] = False
The Data Interpreter is toggled by setting the enable property to True or False.
Fill all three blanks to correctly check and toggle the Data Interpreter in a function.
def toggle_data_interpreter(sheet, turn_on): if sheet.DataInterpreter.[1] != turn_on: sheet.DataInterpreter.[2] = [3]
Check the enabled property, then set the enable property to the value of turn_on.