跟踪最近文件和文件夹。
项目描述
jupyterlab_recents
跟踪最近文件和文件夹。
需求
- JupyterLab >= 3.0 和 Notebooo >= 7.0
安装
要安装扩展,请执行
pip install jupyterlab-recents
或
conda install -c conda-forge jupyterlab-recents
遗留Jupyterlab v1支持
通过NPM
jupyter labextension install jupyterlab-recents@1.0.1
或使用标记的1.0.0版本: https://github.com/jupyterlab-contrib/jupyterlab-recents/tree/v1.0.1
卸载
要删除扩展,请执行
pip uninstall jupyterlab_recents
或
conda remove jupyterlab-recents
贡献
开发安装
注意:您将需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab附带的yarn的固定版本。您可以使用 yarn
或 npm
替代下面的 jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab_recents 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 build
您可以在不同的终端中同时监视源目录并运行JupyterLab,以监视扩展源的变化并自动重新构建扩展。
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
当监视命令运行时,每次保存的更改都将立即在本地构建并可供运行的JupyterLab使用。刷新JupyterLab以在浏览器中加载更改(您可能需要等待几秒钟以重建扩展)。
默认情况下,jlpm build
命令会为此扩展生成源映射,以便使用浏览器开发者工具更容易进行调试。要为 JupyterLab 核心扩展生成源映射,您可以运行以下命令:
jupyter lab build --minimize=False
开发模式下的卸载
pip uninstall jupyterlab_recents
在开发模式下,您还需要删除由 jupyter labextension develop
命令创建的符号链接。要找到其位置,您可以运行 jupyter labextension list
来确定 labextensions
文件夹的位置。然后您可以从该文件夹中删除名为 @jlab-enhanced/recents
的符号链接。
测试扩展
集成测试
此扩展使用 Playwright 进行集成测试(即用户级测试)。更确切地说,使用 JupyterLab 辅助程序 Galata 来处理在 JupyterLab 中测试扩展。
更多信息请参阅 ui-tests 的 README 文件。
打包扩展
请参阅 RELEASE
项目详情
下载文件
下载适合您平台文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。
源分发
构建分发
jupyterlab_recents-3.3.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 31c4dae23d1e4325ddf96f6e7b53634b2531c61edacfa910fd90cfccd9f7a6a4 |
|
MD5 | 9c71a02f3b06b90e150890780cf06ca6 |
|
BLAKE2b-256 | ae0d7ba4bdeeb8ad2e750001e5fcf9177e397d0b8e32caca097e5436cc86a4cd |
jupyterlab_recents-3.3.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3a14d7bf63a5ec4cbaaaed48425ef3214570bd8e808b1de49f0f31035002511e |
|
MD5 | d8b55d827d79fce3db543c5e01e770ed |
|
BLAKE2b-256 | f12db12f95ff874588006d73a6d98c15524c58fdb659b43eab9df20b26bcc481 |