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
-
Start Streamlit from the project root:
streamlit run ziko_st_toc/example.py
-
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(default3001). This variable lives inziko_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 like3001. - 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.envfile before runningnpm run start, and ensure that port is reachable from your browser.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
134a9a4e6343497dc2f63d57d28844e3b308a67593e144c0dc57161c18697d25
|
|
| MD5 |
2ef8f0473fecbf28bba8558157b4b696
|
|
| BLAKE2b-256 |
2599035c956b68854a0dc05747400ad937dec99308e2f3d12382eec8633a7a1a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3b9c34e485125da17664bb4dff5b68769d373d30ab11454d8959b071027b9f6
|
|
| MD5 |
40a059c5848d7e8eaf26d837465ab404
|
|
| BLAKE2b-256 |
984729c317a44ff572045a785ac5403a5b55363b33eefc5b25a15049fb1d034c
|