GitHub - randyzwitch/streamlit-embedcode: Streamlit component for embedding code snippets such as GitHub gists, CodePen snippets, Gitlab snippets, etc. · GitHub
Skip to content

randyzwitch/streamlit-embedcode

Folders and files

Repository files navigation

streamlit-embedcode

Python package

Open in Streamlit

streamlit-embedcode is the easiest way to embed code snippets into your Streamlit app! This static component supports the following code sharing services:

Installation

streamlit-embedcode is distributed via PyPI:

pip install streamlit-embedcode

Examples

Using streamlit-embedcode is as simple as importing the code service you want to use:

import streamlit as st
from streamlit_embedcode import github_gist

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

Optionally, you can provide arguments for height, width and scrolling to control the behavior of the iframe the content is displayed in.

github_streamlit_embed

About

Streamlit component for embedding code snippets such as GitHub gists, CodePen snippets, Gitlab snippets, etc.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

Contributors

Languages