Interactive pyannote widgets
Project description
ipyannote
Installation
pip install ipyannote
or with uv:
uv add ipyannote
Development
We recommend using uv for development. It will automatically manage virtual environments and dependencies for you.
uv run jupyter lab example.ipynb
Alternatively, create and manage your own virtual environment:
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
jupyter lab example.ipynb
The widget front-end code bundles it's JavaScript dependencies. After setting up Python, make sure to install these dependencies locally:
npm install
While developing, you can run the following in a separate terminal to automatically rebuild JavaScript as you make changes:
npm run dev
Open example.ipynb in JupyterLab, VS Code, or your favorite editor
to start developing. Changes made in js/ will be reflected
in the notebook.
Keyboard and gamepad shortcuts
The Waveform widget supports both keyboard shortcuts and standard gamepads.
Click the waveform to give it focus before using either.
Gamepad bindings follow the W3C standard gamepad layout, which maps actions to button positions. Physical labels, however, differ by manufacturer: this table uses Xbox-style labels (A/B/X/Y). If you use a Nintendo-style controller, A and B (as well as X and Y) are physically swapped. The gamepad notation below uses 🕹️ for an analog stick, ⊙ for a stick click, ↔ for left/right axis, ↕ for up/down axis, and ✜ for the D-pad.
Playback
| Feature | Mouse | Keyboard | Gamepad |
|---|---|---|---|
| Toggle play/pause | — | Space | L 🕹️ ⊙ |
| Scrub playback | — | ↔ | L 🕹️ ↔ |
| Scrub playback faster | — | Shift+↔ | L 🕹️ ↔ + A |
| Zoom in/out | Ctrl+🖱️ scroll | Z / Shift+Z | R 🕹️ ↕ |
| Loop on selection or selected region | — | L | B |
| Toggle beep sound on region in/out | — | B | — |
| Toggle gap visualization | — | G | — |
| Toggle action HUD | — | H | — |
Selection
| Feature | Mouse | Keyboard | Gamepad |
|---|---|---|---|
| Toggle selection | 🖱️L + drag | S | R 🕹️ ⊙ |
| Edit selection start | — | ← / → | L 🕹️ ↔ |
| Edit selection end | — | Shift+← / Shift+→ | R 🕹️ ↔ |
| Remove the selection | — | Escape | A |
Regions
| Feature | Mouse | Keyboard | Gamepad |
|---|---|---|---|
| Create a region | 🖱️L×2 | Enter | X |
| Split region | — | Shift+Enter | R₂ |
| Delete selected region | — | Delete or Shift+Backspace | Y |
| Select region | 🖱️L on region | — | L₂ |
| Select previous/next region | — | Tab / Shift+Tab | L₁/R₁ |
| Edit selected region start | — | ↔ | L 🕹️ ↔ |
| Edit selected region end | — | Shift+↔ | R 🕹️ ↔ |
| Unselect region | — | Escape | A |
Labels
| Feature | Mouse | Keyboard | Gamepad |
|---|---|---|---|
| Cycle next/previous label for selected region | — | > / < | ✜ ↕ |
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
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 ipyannote-0.6.0.tar.gz.
File metadata
- Download URL: ipyannote-0.6.0.tar.gz
- Upload date:
- Size: 82.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26a7fddafa93c3077994704d0bf06b4ef5b7fc742d5933f734c484bb7ec6f744
|
|
| MD5 |
43f9b48f0a723b588426efee776163ec
|
|
| BLAKE2b-256 |
0539d2469bb8cfda3c216b24b67f3cb9e42ffb4623afa6088645ab21be74e446
|
File details
Details for the file ipyannote-0.6.0-py3-none-any.whl.
File metadata
- Download URL: ipyannote-0.6.0-py3-none-any.whl
- Upload date:
- Size: 96.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84dd717398420b640aeed1a36f1d81ae6339b0339ae3936f4ce9ba55dedb17f7
|
|
| MD5 |
4ba3050a3c2d20f42ff150ee3441fd85
|
|
| BLAKE2b-256 |
6b3bad3970ce12c3d3bd4ed28073f25a420677ce17f7045b33b656f3c76b5871
|