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.3.0.tar.gz (62.2 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.3.0-py3-none-any.whl (61.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ziko_st_toc-0.3.0.tar.gz
  • Upload date:
  • Size: 62.2 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.3.0.tar.gz
Algorithm Hash digest
SHA256 a8f54d2792725f3a2316d9ddde7beeef71c6c508541430e81f165b62d70d2118
MD5 84eb844b0417125aa5ed1e33c2443cfd
BLAKE2b-256 e0c49dbd254a700159d368be566e61209813949cdea4e5607e1d726abff2e1c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ziko_st_toc-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 61.7 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df0a9528ead1da407b766c45ed5d8fbea6330deb7b5af74876fcc52992c9eee3
MD5 5c9b3dd1b752700faedd3082017fc2d7
BLAKE2b-256 c2386a025b6fbf622f2628e8082250feb5eb8af79171eb52525bc488ee251ec5

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