Skip to main content

Zikojs based Interactive Table of Contents component for Streamlit.

Project description

ziko-st-toc

Zikojs based Interactive Table of Contents component for Streamlit.

Installation instructions

pip install ziko-st-toc

Usage instructions

import streamlit as st

from ziko_st_toc import table_of_contents

value = table_of_contents()

st.write(value)

Local development

  1. Start Streamlit from the project root:

    streamlit run ziko_st_toc/example.py
    
  2. In another terminal, run the Vite dev server from ziko_st_toc/frontend:

    npm install
    npm run start
    

Important dev server notes

  • The browser connects to the Vite dev server directly. Streamlit does not proxy this port, so the Vite port must be reachable from the client just like the Streamlit port.
  • Vite listens on the value of VITE_PORT (default 3001). This variable lives in ziko_st_toc/frontend/.env. Update that file whenever you need to change the port, and remember that Windows/WSL/Hyper-V or dev containers may silently remap addresses like 3001.
  • If a port is unavailable or blocked by a firewall/mobile connection, set VITE_PORT=5173 (Vite's default) or any other open port inside the .env file before running npm run start, and ensure that port is reachable from your browser.

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

ziko_st_toc-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ziko_st_toc-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file ziko_st_toc-0.1.0.tar.gz.

File metadata

  • Download URL: ziko_st_toc-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for ziko_st_toc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 134a9a4e6343497dc2f63d57d28844e3b308a67593e144c0dc57161c18697d25
MD5 2ef8f0473fecbf28bba8558157b4b696
BLAKE2b-256 2599035c956b68854a0dc05747400ad937dec99308e2f3d12382eec8633a7a1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ziko_st_toc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for ziko_st_toc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3b9c34e485125da17664bb4dff5b68769d373d30ab11454d8959b071027b9f6
MD5 40a059c5848d7e8eaf26d837465ab404
BLAKE2b-256 984729c317a44ff572045a785ac5403a5b55363b33eefc5b25a15049fb1d034c

See more details on using hashes here.

Supported by

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