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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ziko_st_toc-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 f73034b26decdc46dd8044bc293c177e6d2bd2479711557c55584551f0533c96
MD5 d470e7f05f39d2d5a6dd5af7854e2026
BLAKE2b-256 0d7f260f482687388558482ef9e969fd48fb9bdf828907db27704e958b2f5e44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ziko_st_toc-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4187c887a944a2d9b6032e6384817b21f5c52c1d3cfc4a99992a7b330a0df06
MD5 b52a3cab5b3b589ac940e25091e74f29
BLAKE2b-256 c35b0733df98bd0f5f42c8c285ada882c909e7c6533a7cab75acdbfd962d590f

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