Display a list of subwords as a phrase and get the hovered index and hovered subword
Recording-20260406_175313.mp4
Try it here (no installation required): subword-tooltip-app
pip install subword-tooltipor with uv:
uv add subword-tooltipWe recommend using uv for development. It will automatically manage virtual environments and dependencies for you.
uv run jupyter lab example.ipynbAlternatively, create and manage your own virtual environment:
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
jupyter lab example.ipynbOpen example.ipynb in JupyterLab, VS Code, or your favorite editor
to start developing. Changes made in src/subword_tooltip/static/ will be reflected
in the notebook.