streamlit-embedcode
Streamlit component for embedded code snippets
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-embedcodeuv
uv add streamlit-embedcodepoetry
poetry add streamlit-embedcodeInstalling 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
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
streamlit-code-editorEmbeds an interactive code editor component…
unclear · top 15,000 on PyPI
streamlit-pdfAdds a PDF viewer component to Streamlit apps…
permissive · top 15,000 on PyPI
streamlit-aceEmbeds an Ace code editor component into…
permissive · top 15,000 on PyPI
streamlit-quillEmbeds a React Quill rich-text editor component…
unclear · top 15,000 on PyPI
streamlit-cardA Streamlit component that renders interactive…
permissive · top 15,000 on PyPI
st-annotated-textDisplays annotated text with labels and…
permissive · top 15,000 on PyPI
streamlit-camera-input-liveProvides a Streamlit component that captures…
unclear · top 15,000 on PyPI
cogappCog executes Python code snippets embedded in…
permissive · top 15,000 on PyPI
git-me-the-urlConverts git repository references (file paths,…
copyleft · top 15,000 on PyPI
mypy-gitlab-code-qualityConverts mypy type-checking output into GitLab…
permissive · top 15,000 on PyPI