Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipyannote-0.6.1.tar.gz (82.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipyannote-0.6.1-py3-none-any.whl (96.1 kB view details)

Uploaded Python 3

File details

Details for the file ipyannote-0.6.1.tar.gz.

File metadata

  • Download URL: ipyannote-0.6.1.tar.gz
  • Upload date:
  • Size: 82.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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

Hashes for ipyannote-0.6.1.tar.gz
Algorithm Hash digest
SHA256 7ef5bff77c4cc411d2b24f1cc96399a3c80bcb9fc880b065de78fa295475ce8d
MD5 fa3deed40200160d4f52f2907df90528
BLAKE2b-256 34851c9338503fc812aeca5b157a5e2117fba479d2692af3647628b474d506be

See more details on using hashes here.

File details

Details for the file ipyannote-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: ipyannote-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 96.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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

Hashes for ipyannote-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63e732be43ea1f25d32bdebb330f58bf39d4c67a066894592c39149df7b3f98c
MD5 f715547168df7beea9071baa58a4056e
BLAKE2b-256 53cd52e91e2f37205783ea8bf5605c52d23790cbfcaca83f1a08ab4c3e4aef63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page