skillfed

streamlit-embedcode

Streamlit component for embedded code snippets

streamlit-embedcode v0.1.2 263.3K downloads/30d#8,359 on PyPI71
License unclear Abandoned released

What it is and what it does

streamlit-embedcode is a Streamlit component that wraps code-sharing services (GitHub gist, GitLab snippets, Pastebin, CodePen, Ideone, and TagMyCode) into embeddable iframe components for display within Streamlit apps. It lets you reference external code snippets by URL and render them inline, with optional control over iframe height, width, and scrolling behavior.

The package depends only on streamlit and installs with low friction. However, it has been abandoned since 2021-05-17 and receives no maintenance, so its compatibility with modern Streamlit versions and the stability of the external services' embed APIs are both unknown.

Use it for:

  • Display GitHub gist snippets in a Streamlit documentation or tutorial app without copying code into the app itself
  • Embed CodePen projects or Pastebin pastes directly in a Streamlit dashboard for reference or demonstration
  • Create a code-sharing portal in Streamlit that pulls snippets from multiple external services via URL
  • Show GitLab snippets or Ideone solutions in a Streamlit learning or code-review interface

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Embeds code snippets from external services (GitHub gist, GitLab, Pastebin, CodePen, Ideone, TagMyCode) directly into Streamlit apps via iframe components.

No—the package is abandoned (last release 2021-05-17, no commits for 1915 days) with no maintenance signal, an unclear license, and unknown compatibility with current Streamlit versions. Only install if you are maintaining a legacy Streamlit app that already uses it and you have verified the component still works with your current environment.

Install

streamlit-embedcode on PyPI

pip

pip install streamlit-embedcode

uv

uv add streamlit-embedcode

poetry

poetry add streamlit-embedcode

Installing streamlit-embedcode

Before you install

Installation is straightforward with a single dependency on streamlit, but the package has been abandoned since May 2021 with no maintenance for 1915 days, so expect no updates for bugs or compatibility issues.

License in practice

License status is unclear—no SPDX identifier or raw license text is available—so legal terms for use and redistribution cannot be determined from the package metadata.

Quickstart

pip install streamlit-embedcode

import streamlit as st
from streamlit_embedcode import github_gist

github_gist("https://gist.github.com/randyzwitch/be8c5e9fb5b8e7b046afebcac12e5087/")

Requires Python >=3.6; compatibility with current Streamlit versions is unknown given the package has not been maintained since 2021-05-17.

Verify before relying

  • Whether the component still works with current Streamlit versions given the 1915-day gap since last release
  • Whether the external code-sharing services' embed APIs remain compatible with the component's iframe approach
  • What the actual license is, since it is not declared in package metadata

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 1 — streamlit
Maintenance abandoned — 1,915 days since the last release
Last repo commit
First released
Downloads 263,333/month — #8,359 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: streamlit_embedcode-0.1.2-py3-none-any.whl

Tags

embed code snippets streamlitgithub gist streamlit componentpastebin embed streamlitcode sharing streamlitstreamlit iframe code displaycodepen streamlit embedgitlab snippets streamlit
abandonedstreamlit-component

More Application Frameworks packages