实验性功能:使用JupyterLab Code Snippets保存、重用和共享代码片段
项目描述
JupyterLab代码片段
使用JupyterLab代码片段保存、重用和共享代码片段
此扩展是Elyra原始设计的衍生品,并由Jupyter Cal Poly团队进一步开发。
阅读新闻稿了解更多信息。
查看当前进度以跟进我们的功能更新!
此扩展由一个名为jupyterlab-code-snippets
的前端扩展NPM包组成。
要求
- 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的固定版本。您可以使用下面的yarn
或npm
代替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.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 4f85f2997ff513bfff6901d42eda18931f848cedaa8e684161658c0e7296aff5 |
|
MD5 | 533ebffd778ce5968945942319fb86bc |
|
BLAKE2b-256 | a90a16065b314651865427ad3cbbfd47dc31eeba7a2e6771ee314a3ed2f6983e |
关闭
jupyterlab_code_snippets-2.2.1-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 0fbaa23c91a24e0bde7fbb2bb639438d19fdeb28486ca8e194174659eaacaf82 |
|
MD5 | 3e7312db308a65fae566b0f0de076b22 |
|
BLAKE2b-256 | 9e88a9238fe34be9c052fb606241c099289a27aa9b0a12c4fefa7b60f4967844 |