displayHTML(f"""
<!DOCTYPE html>
<html>
<body>
<textarea id="log" rows="10" cols="50" readonly></textarea>
<script>
const DATABRICKS_HOST = "{os.environ['DATABRICKS_HOST']}";
const DATABRICKS_API_TOKEN = "{os.environ['DATABRICKS_API_TOKEN']}";
async function loadClusterData() {{
try {{
const response = await fetch(`https://${{DATABRICKS_HOST}}/api/2.0/clusters/list`, {{
method: 'GET',
headers: {{
'Authorization': `Bearer ${{DATABRICKS_API_TOKEN}}`,
'Content-Type': 'application/json'
}},
}});
document.getElementById('log').value = "Response status: " + response.status;
if (!response.ok) {{
throw new Error(`HTTP error! status: ${{response.status}}`);
}}
const data = await response.json();
document.getElementById('log').value += "\\nResponse data: " + JSON.stringify(data);
}} catch (error) {{
document.getElementById('log').value += "\\nFailed to load cluster data: " + error.message;
}}
}}
window.onload = loadClusterData;
</script>
</body>
</html>
""")
```