Installation¶
On this page¶
- Requirements
- Install the package
- Install from source
- Install documentation tools
- Build the frontend
- Verify the checkout
Requirements¶
- Python 3.10 or newer.
- pandas 2.2.2 or newer.
- Streamlit 1.57 or newer.
- Node.js 22.15 or newer when changing the JavaScript frontend; CI uses Node.js 24.
- A Chromium browser for Playwright tests and screenshot capture.
Install the package¶
Add the library to a uv project:
Or install it with pip:
Install from source¶
From the repository root:
For a development checkout managed by uv:
uv.lock gives maintainers and CI a reproducible environment. A consuming
application does not need the lock file after installing the package.
Install documentation tools¶
The MkDocs site provides a concise library overview, task-oriented guides, and
detailed API entries for every public function. Choose any unused local port;
this example uses 8000:
Use both extras when editing documentation screenshots or running all checks:
Build the frontend¶
The wheel already contains the compiled frontend. Rebuild it only after editing
files under st_graph_workbench/frontend/src:
Restart Streamlit after a production build if a browser still loads an older hashed bundle.
Verify the checkout¶
uv run ruff check .
uv run mypy st_graph_workbench/
uv run pytest --reruns 0 -q
uv run mkdocs build --strict
The example commands use 8502 for Streamlit and 8000 for MkDocs. You may
choose different unused ports; keeping the two services on separate ports
prevents one from replacing the other.
Automated browser checks use Chromium. Chrome and Edge share its browser engine; Firefox and WebKit are not part of the automated compatibility gate.
Conclusion¶
Continue to Quick start and render the first graph.