How to embed the Tableau with iframe properly?

Hi,
When I tried to embed the Tableau interface with its link, the view got cut off and showed only part of it. However, it works properly with HTML iframe. Is it anything I did wrong? Thanks.

The code:

import streamlit as st
import streamlit.components.v1 as components

components.html(
  """
  <iframe src="https://prod-apnortheast-a.online.tableau.com/t/informationvisualization/views/AccountTracking/AccountTracking?::embed=yes&:tabs=yes&:toolbar=yes&:origin=viz_share_link"
    width="1600" height="2000">
  </iframe>
  """
)

Ok, there is a components.iframe to render the embed link properly.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.