priority_high

Warning

You are reading the documentation for Streamlit version 1.30.0, but 1.52.0 is the latest version available.

Load a remote URL in an iframe.

Function signature[source]

st.components.v1.iframe(src, width=None, height=None, scrolling=False)

Parameters

src (str)

The URL of the page to embed.

width (int)

The width of the frame in CSS pixels. Defaults to the app's default element width.

height (int)

The height of the frame in CSS pixels. Defaults to 150.

scrolling (bool)

If True, show a scrollbar when the content is larger than the iframe. Otherwise, do not show a scrollbar. Defaults to False.

forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.