JupyterLab扩展,用于在顶部栏显示任意文本
项目描述
jupyterlab-topbar-text
JupyterLab扩展,用于在顶部栏显示任意文本。
需求
- JupyterLab >= 4.0
安装
JupyterLab 4.x
安装版本1.0.0或更高版本
pip install jupyterlab-topbar-text>=1.0.0
JupyterLab 3.x
安装版本0.6.2
pip install jupyterlab-topbar-text==0.6.2
卸载
要删除扩展,请执行
pip uninstall jupyterlab-topbar-text
贡献
开发安装
注意:您需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab附带安装的yarn的固定版本。您可以使用下面的yarn
或npm
代替jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab_topbar_text 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
您可以在不同的终端中同时监视源目录并运行 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
开发卸载
pip uninstall jupyterlab-topbar-text
在开发模式下,您还需要删除由 jupyter labextension develop
命令创建的符号链接。要找到其位置,您可以运行 jupyter labextension list
以确定 labextensions
文件夹的位置。然后您可以删除该文件夹中的名为 jupyterlab-topbar-text
的符号链接。
打包扩展
见 RELEASE
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。
源分发
jupyterlab_topbar_text-1.0.0.tar.gz (13.7 kB 查看哈希值)
构建分发
关闭
jupyterlab_topbar_text-1.0.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f2b552120f9611c8ebffdf284eecd30751b7a0517f7d74dde7e09e7046c3a1e0 |
|
MD5 | 03f4dd8f644cc514bfa98efa05689618 |
|
BLAKE2b-256 | df14741362e9fd70d8761c77c36cc7fe8209156120d2741bbc641daa2be76ab6 |
关闭
jupyterlab_topbar_text-1.0.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | dd2c538ae4963a58c09fb37e807f95fd9a1d861333eeb1da61a0f61d8a93df14 |
|
MD5 | ba3397515cdfe007d46c83d3006977be |
|
BLAKE2b-256 | 15111f66f5cfbc1ff7ab3f10b3b60db3ed1421b5c62e72270680bce03256d3b9 |