跳转到主要内容

实验性功能:使用JupyterLab Code Snippets保存、重用和共享代码片段

项目描述

JupyterLab代码片段

使用JupyterLab代码片段保存、重用和共享代码片段

Github Actions Status Binder npm version PyPI version Conda Version License Documentation Status

此扩展是Elyra原始设计的衍生品,并由Jupyter Cal Poly团队进一步开发。

阅读新闻稿了解更多信息。

查看当前进度以跟进我们的功能更新!

此扩展由一个名为jupyterlab-code-snippets的前端扩展NPM包组成。

Alt Text

要求

  • JupyterLab >= 3.5.3
  • Python >= 3.7

安装

使用jupyter安装

jupyter labextension install jupyterlab-code-snippets

使用pip安装

pip install jupyterlab-code-snippets
conda install -c conda-forge jupyterlab-code-snippets

故障排除

如果已安装,请尝试

jupyter lab clean
jupyter lab build

贡献

安装

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

# Clone the repo to your local environment
# Move to jupyter-lab-code-snippets 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-code-snippets

或者

pip uninstall jupyterlab-code-snippets

项目详情


下载文件

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

源分发

jupyterlab_code_snippets-2.2.1.tar.gz (48.1 MB 查看哈希值)

上传时间

构建分发

jupyterlab_code_snippets-2.2.1-py3-none-any.whl (163.3 kB 查看哈希值)

上传时间 Python 3

由以下机构支持

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