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.2.tar.gz (83.2 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.2-py3-none-any.whl (97.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipyannote-0.6.2.tar.gz
  • Upload date:
  • Size: 83.2 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.2.tar.gz
Algorithm Hash digest
SHA256 1b30fdb74f2c73c20833258acfea892fbabd8c5125493160e33f325bee2019f8
MD5 96e402bf824bebc1139ac237daf97bc8
BLAKE2b-256 c6684a081097335cc60a1bed76646629cc06492f6c0cf0cdbc5b666d873c7152

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipyannote-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 97.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5659e8caa999bc9603b2ea964dce602e45e2ee0d9fc69ae7f85208db70d8bae
MD5 1816b4e04c848d9a03ae71b2d70adffd
BLAKE2b-256 759ff775f3be3536503ee031ed390b12c37ee395c8ee181333c8919d543fcfe1

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