跳转到主要内容

A JupyterLab扩展。

项目描述

send_3_test

Github Actions StatusBinder A JupyterLab extension.

要求

  • JupyterLab >= 4.0.0

安装

要安装扩展,执行

pip install send_3_test

卸载

要删除扩展,执行

pip uninstall send_3_test

贡献

开发安装

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

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

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

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

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

jupyter lab build --minimize=False

开发卸载

pip uninstall send_3_test

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

测试扩展

前端测试

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

要执行它们,执行

jlpm
jlpm test

集成测试

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

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

打包扩展

请参阅 RELEASE

项目详情


下载文件

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

源代码分发

send_3_test-0.1.0.tar.gz (223.0 kB 查看哈希值)

上传时间 源代码

构建分发

send_3_test-0.1.0-py3-none-any.whl (56.6 kB 查看哈希值)

上传时间 Python 3

支持者

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