跳转到主要内容

为JupyterLab中的应用程序提供任意快捷键

项目描述

Jupyter Launcher Shortcuts

适用于JupyterLab(版本4+)和经典Jupyter Notebook(版本7+,目前损坏,见 Issue #25)的扩展,用于添加用户定义的'启动器'快捷键。主要用于JupyterHub / Binder情况。

对于JupyterLab,它们被添加到启动器界面中。

对于经典Jupyter Notebook,它们被添加到'新建'按钮下

安装

可以使用pip安装JupyterLab扩展、经典Jupyter Notebook扩展以及后台所需的Jupyter Server扩展。

pip install jupyter-launcher-shortcuts

配置

扩展可以在由 jupyter --paths 命令输出的 config 目录下的任意目录中创建的 jupyter_server_config.py 文件中进行配置。

c.LauncherShortcuts.shortcuts = {
    'my-shiny-application': {
        'title': 'Human Readable Shortcut Title',
        'target': '{base_url}shiny/my-shiny-application-directory/',
        'icon_path': '/path/to/svg/file'
    }
}

项目详情


下载文件

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

源分布

jupyter_launcher_shortcuts-4.0.3.tar.gz (169.0 kB 查看哈希值)

上传时间

构建分布

jupyter_launcher_shortcuts-4.0.3-py3-none-any.whl (20.2 kB 查看哈希值)

上传时间 Python 3