New Component: streamlit-embeded allows easy embedding of an HTML snippet and automatically adjusts the content height

As a part of a series on sharing components, I will share a solution for easy embedding of an HTML snippet and automatically adjusts the content height。

Install

pip install streamlit-embeded

Usage

import streamlit as st

from streamlit_embeded import st_embeded

source = """

"""
st_embeded(source)

Example

A very simple but usaful example is to use Pyinstrument in combination with complex Streamlit applications for profiling, thus identifying performance bottlenecks.

4 Likes