Skip to main content

A JupyterLab extension for rendering wav files.

Project description

jupyterlab-wav

Github Actions Status

A simple wave file viewer using WaveSurfer.js for JupyterLab.

screenshot

Requirements

  • JupyterLab >= 3.0

Install

pip install jupyterlab-wav

Contributing

Development install

Note: You will need NodeJS to build the extension package.

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# Clone the repo to your local environment
# Change directory to the jupyterlab-wav directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm run build

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 extension.

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

With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

By default, the jlpm run build command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:

jupyter lab build --minimize=False

Uninstall

pip uninstall jupyterlab-wav

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

jupyterlab_wav-0.3.0.tar.gz (340.1 kB view details)

Uploaded Source

Built Distribution

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

jupyterlab_wav-0.3.0-py3-none-any.whl (372.5 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_wav-0.3.0.tar.gz.

File metadata

  • Download URL: jupyterlab_wav-0.3.0.tar.gz
  • Upload date:
  • Size: 340.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for jupyterlab_wav-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6f9394bd36bcae0cbf9f8f873c46e6ce1ec1e64ba7503060c5894e4d97d0ff1c
MD5 4a085cfa78661090d9ebabb1ae05c365
BLAKE2b-256 1db4ffc291988d4cb3a8f97d3231b58e78a91b059db4cb334cd1bdd621ae8ef4

See more details on using hashes here.

File details

Details for the file jupyterlab_wav-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: jupyterlab_wav-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 372.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for jupyterlab_wav-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a578f7f1d0bdc6794f7d22ca1a7582b741f8e7e2b23958446b5694fcabe23bbf
MD5 85fc7d73009f80172f69f4544fb2294a
BLAKE2b-256 63cb80aa55d7fbb9043dc9538011e04e33ddc210f4ca36abc05fbed27c722765

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