跳转到主要内容

Jupyter lab扩展,用于添加单元格切换幻灯片模式的键盘快捷键。

项目描述

jupyterlab-slide-mode-keyboard-shortcuts

Github Actions Status

Jupyter lab扩展,用于添加单元格切换幻灯片模式的键盘快捷键。

需求

  • JupyterLab >= 2.0

安装

jupyter labextension install jupyterlab-slide-mode-keyboard-shortcuts

用法

此软件包设置了可配置的键盘快捷键,用于更改笔记本单元格的幻灯片模式。

快捷键仅在"命令模式"下有效。

默认键盘快捷键是

  • 幻灯片: Shift S
  • 子幻灯片: Shift B
  • 片段: Shift G
  • 跳过: Shift I
  • 笔记: Shift N
  • 清除: Shift C

这些可以通过标准的JupyterLab键盘快捷键自定义界面进行自定义。

贡献

开发者安装

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

# Clone the repo to your local environment
# Move to slide-mode-keyboard-shortcuts directory

# Install dependencies
jlpm
# Build Typescript source
jlpm build
# Link your development version of the extension with JupyterLab
jupyter labextension install .
# Rebuild Typescript source after making changes
jlpm build
# Rebuild JupyterLab after making any changes
jupyter lab build

您可以通过监视源目录并在监视模式下运行JupyterLab来监视扩展的源代码,并自动重建扩展和应用程序。

# Watch the source directory in another terminal tab
jlpm watch
# Run jupyterlab in watch mode in one terminal tab
jupyter lab --watch

现在每次更改都会在本地构建并捆绑到JupyterLab中。请确保在保存文件更改后刷新浏览器页面以重新加载扩展(注意:您需要等待webpack完成,这有时可能需要10秒以上)。

卸载

jupyter labextension uninstall jupyterlab-slide-mode-keyboard-shortcuts

项目详情


下载文件

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

源代码发行版

jupyterlab-slide-mode-keyboard-shortcuts-0.3.0.tar.gz (84.8 kB 查看哈希值)

上传时间 源代码

构建发行版

支持

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