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.3.0.tar.gz
(62.2 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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8f54d2792725f3a2316d9ddde7beeef71c6c508541430e81f165b62d70d2118
|
|
| MD5 |
84eb844b0417125aa5ed1e33c2443cfd
|
|
| BLAKE2b-256 |
e0c49dbd254a700159d368be566e61209813949cdea4e5607e1d726abff2e1c6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df0a9528ead1da407b766c45ed5d8fbea6330deb7b5af74876fcc52992c9eee3
|
|
| MD5 |
5c9b3dd1b752700faedd3082017fc2d7
|
|
| BLAKE2b-256 |
c2386a025b6fbf622f2628e8082250feb5eb8af79171eb52525bc488ee251ec5
|