Optuna的JupyterLab扩展
项目描述
jupyterlab-optuna
Optuna的JupyterLab扩展
需求
- JupyterLab >= 4.0.0
安装
要安装扩展,请执行
pip install jupyterlab-optuna
卸载
要删除扩展,请执行
pip uninstall jupyterlab-optuna
故障排除
如果您看到前端扩展但无法使用,请检查服务器扩展是否已启用
jupyter server extension list
如果服务器扩展已安装并启用,但您看不到前端扩展,请检查前端扩展是否已安装
jupyter labextension list
贡献
开发安装
注意:您需要NodeJS来构建扩展包。
jlpm
命令是JupyterLab安装的yarn的固定版本。您可以使用下面的yarn
或npm
代替jlpm
。
# Clone the repo to your local environment
# Change directory to the jupyterlab_optuna directory
# Install package in development mode
pip install -e ".[dev]"
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Server extension must be manually installed in develop mode
jupyter server extension enable jupyterlab_optuna
# 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
开发卸载
# Server extension must be manually disabled in develop mode
jupyter server extension disable jupyterlab_optuna
pip uninstall jupyterlab_optuna
在开发模式下,您还需要删除由jupyter labextension develop
命令创建的符号链接。要找到其位置,您可以运行jupyter labextension list
以确定labextensions
文件夹的位置。然后您可以在该文件夹中删除名为jupyterlab-optuna
的符号链接。
打包扩展
参见RELEASE
项目详情
关闭
jupyterlab_optuna-0.1.0.tar.gz的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | cf8fea89c7dbd7ca0fa9c2daf48f580731fee651affc18a9401a6e9509ead421 |
|
MD5 | c54f70ebe032ede35746d9c420c4b376 |
|
BLAKE2b-256 | c39ab62a5e73a32f780e8543020b9b09f2ace4e51571b9dcc7eef0d4179c1eea |