Skip to main content

Streamlit component for rendering vis.js timeline

Project description

streamlit-timeline-demo

image image Open in Streamlit

Streamlit component for rendering vis.js timeline with bidirectional communication.

Check out the GitHub repositories streamlit-timeline and streamlit-timeline-demo. For JavaScript examples, check out the vis.js timeline examples and documentation.

Installation

pip install streamlit-vis-timeline

Usage

import streamlit as st
from streamlit_timeline import st_timeline

st.set_page_config(layout="wide")

items = [
    {"id": 1, "content": "2022-10-20", "start": "2022-10-20"},
    {"id": 2, "content": "2022-10-09", "start": "2022-10-09"},
    {"id": 3, "content": "2022-10-18", "start": "2022-10-18"},
    {"id": 4, "content": "2022-10-16", "start": "2022-10-16"},
    {"id": 5, "content": "2022-10-25", "start": "2022-10-25"},
    {"id": 6, "content": "2022-10-27", "start": "2022-10-27"},
]

timeline = st_timeline(items, groups=[], options={}, height="300px")
st.subheader("Selected item")
st.write(timeline)

Demo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-vis-timeline-0.1.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

streamlit_vis_timeline-0.1.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file streamlit-vis-timeline-0.1.0.tar.gz.

File metadata

  • Download URL: streamlit-vis-timeline-0.1.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for streamlit-vis-timeline-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7a523c7f3785c65d4bc198d0eb0140931bae82103c5a4a9dabed3d7eeb54125e
MD5 e0bedfffb9002a8397a4f795de43143b
BLAKE2b-256 e8905322ec5863257f80785595b94581d9cfcd8ab064ea2630111afb965f95d2

See more details on using hashes here.

File details

Details for the file streamlit_vis_timeline-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: streamlit_vis_timeline-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for streamlit_vis_timeline-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bee7536bdcd8d0fe276c9bd6b532fa4b99916b7398072dde585a8e42a8bf4be5
MD5 b9ab443f40d8a249981b2217c1ed628e
BLAKE2b-256 52433f0a75fe67efc96401580929a9b63e0b6a60bff0c63d2e5c1b7b248e2180

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page