跳转到主要内容

JupyterLab作为数字音频工作站

项目描述

logo

JupyterLab-DAW

Github Actions Status

在JupyterLab中处理音频和音乐。

此JupyterLab扩展为那些使用数字音频工作站(DAW)进行音频编辑和制作的人提供了熟悉的功能。

所有音频处理都在前端(浏览器)中进行,使用了Tone.js库。通过ipytone可以在Python笔记本中进行交互。

注意:这还是一个正在进行中的项目(目前没有什么可看的)!

需求

  • JupyterLab >= 3.0

安装

要安装此扩展,请执行

pip install jupyterlab_daw

卸载

要删除此扩展,请执行

pip uninstall jupyterlab_daw

贡献

开发安装

注意:您将需要NodeJS来构建扩展包。

jlpm 命令是JupyterLab附带的yarn的固定版本。您可以使用yarnnpm代替以下jlpm

# Clone the repo to your local environment
# Change directory to the jupyterlab_daw 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 build

您可以在不同的终端中同时监视源目录并运行JupyterLab,以监视扩展源中的更改并自动重新构建扩展。

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

在监视命令运行时,每次保存的更改都将立即在本地上构建并可供运行的JupyterLab使用。刷新JupyterLab以在浏览器中加载更改(您可能需要等待几秒钟以重新构建扩展)。

默认情况下,jlpm build 命令会为这个扩展生成源映射,以便使用浏览器开发者工具进行调试。要同时为 JupyterLab 核心扩展生成源映射,可以运行以下命令

jupyter lab build --minimize=False

开发模式下的卸载

pip uninstall jupyterlab_daw

在开发模式下,还需要删除 jupyter labextension develop 命令创建的符号链接。要找到它的位置,可以运行 jupyter labextension list 以确定 labextensions 文件夹的位置。然后可以删除该文件夹内名为 jupyterlab-daw 的符号链接。

测试扩展

前端测试

此扩展使用 Jest 对 JavaScript 代码进行测试。

要执行它们,请执行

jlpm
jlpm test

集成测试

此扩展使用 Playwright 进行集成测试(即用户级测试)。更确切地说,JupyterLab 辅助程序 Galata 用于处理在 JupyterLab 中的扩展测试。

更多详细信息请参阅 ui-tests 的 README。

打包扩展

RELEASE

项目详情


下载文件

下载适合您平台的应用程序文件。如果您不确定选择哪一个,请了解有关 安装包 的更多信息。

源分布

jupyterlab_daw-0.2.1.tar.gz (314.9 kB 查看哈希值)

上传时间

构建分布

jupyterlab_daw-0.2.1-py3-none-any.whl (98.5 kB 查看哈希值)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面