Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

🎹 pyannote + 🗒 notebook = pyannotebook

Build Status codecov

pyannotebook is a custom Jupyter widget built on top of pyannote.core and wavesurfer.js.

pyannotebook screenshot

This is a work in progress, try it here: Binder

Feedback and pull requests welcome!

Development Installation

Create a dev environment:

conda create -n pyannotebook-dev -c conda-forge nodejs yarn python jupyterlab
conda activate pyannotebook-dev

Install the python. This will also build the TS package.

pip install -e ".[test, examples]"

When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:

jupyter labextension develop --overwrite .
yarn run build

For classic notebook, you need to run:

jupyter nbextension install --sys-prefix --symlink --overwrite --py pyannotebook
jupyter nbextension enable --sys-prefix --py pyannotebook

Note that the --symlink flag doesn't work on Windows, so you will here have to run the install command every time that you rebuild your extension. For certain installations you might also need another flag instead of --sys-prefix, but we won't cover the meaning of those flags here.

How to see your changes

Typescript:

If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the widget.

# Watch the source directory in one terminal, automatically rebuilding when needed
yarn run watch
# Run JupyterLab in another terminal
jupyter lab

After a change wait for the build to finish and then refresh your browser and the changes should take effect.

Python:

If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.

Updating the version

To update the version, install tbump and use it to bump the version. By default it will also create a tag.

pip install tbump
tbump <new-version>

Metadata

Release files for pyannotebook 0.1.0.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyannotebook 0.1.0.dev0
File Size Uploaded
pyannotebook-0.1.0.dev0.tar.gz 13.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyannotebook 0.1.0.dev0
File Interpreter ABI Platform
pyannotebook-0.1.0.dev0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 MB

Release files / pyannotebook-0.1.0.dev0.tar.gz

Download URL pyannotebook-0.1.0.dev0.tar.gz
Size 13.8 MB
Tags Source
SHA-256 checksum
How to use checksums
f52804fedb71ef9af9b5005be36ef0d76e360d201f5640a2a0257584bff3f11f
BLAKE2b-256 checksum
How to use checksums
74498687f716dc452805692aec4a18de5e0d6d9af3c8236403baa1ec5d314d23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / pyannotebook-0.1.0.dev0-py3-none-any.whl

Download URL pyannotebook-0.1.0.dev0-py3-none-any.whl
Size 898.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b0428b2c021d2e82b1809ce43125947f8dd4c53a6a9fcaa446052afca2c485a
BLAKE2b-256 checksum
How to use checksums
84e800cc792810134c037c1988ab78d12f1daad798511af6d51908ca1f74754e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.0.dev0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page