跳转到主要内容

TileDB笔记本扩展,用于提示用户选择笔记本选项

项目描述

tiledb-prompt-options

Github Actions Status

TileDB笔记本扩展,用于提示用户选择笔记本选项

此扩展由名为 tiledb-prompt-options 的Python包和名为 @tiledb-inc/tiledb_prompt_options 的NPM包组成,分别用于服务器扩展和前端扩展。

需求

  • JupyterLab >= 3.0

安装

要安装扩展,执行

pip install tiledb-prompt-options

卸载

要删除扩展,执行

pip uninstall tiledb-prompt-options

故障排除

如果您看到前端扩展但无法使用,请检查服务器扩展是否已启用

jupyter server extension list

如果服务器扩展已安装并启用,但您未看到前端扩展,请检查前端扩展是否已安装

jupyter labextension list

贡献

开发安装

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

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

# Clone the repo to your local environment
# Change directory to the tiledb-prompt-options directory
# Install package in development mode
python -m pip install .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Server extension must be manually installed in develop mode
jupyter server extension enable tiledb-prompt-options
# Rebuild extension Typescript source after making changes
jlpm run build

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

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

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

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

jupyter lab build --minimize=False

开发卸载

# Server extension must be manually disabled in develop mode
jupyter server extension disable tiledb-prompt-options
pip uninstall tiledb-prompt-options

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

打包扩展

RELEASE

项目详情


下载文件

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

源分发

此发行版没有可用的源分发文件。请参阅生成分发存档的教程。

构建分发

tiledb_prompt_options-1.1.0-py2.py3-none-any.whl (27.2 kB 查看散列)

上传时间 Python 2 Python 3

支持者

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