一个为EMBL工具添加JupyterLab启动程序快捷方式的扩展
embl-tools-jl的Python项目详细描述
embl工具jl
版权所有(c)2020,Nandor Poka博士
根据3条BSD许可条款分发
一个扩展,为EMBL工具添加了JupyterLab的启动程序快捷方式。在
这个扩展由一个名为embl_tools_jl
的Python包组成
对于服务器扩展和名为embl-tools-jl
的NPM包
对于前端扩展。在
预览
要求
- JupyterLab>;=2.0
扫描工具可能需要很长时间,因此会延迟JupyterLab的启动。建议将EMBL工具放在使用JupyterLab的常规工作目录的根目录下。如果扫描在当前Jupyter Lab working dir root中找不到EMBL工具,则扩展将复制提供的版本以供临时使用。此副本将在下次启动时删除。
快速安装
注意:您需要NodeJS来安装扩展。在
pip install embl_tools_jl jupyter lab build
故障排除
如果您看到前端扩展但它不工作,请检查 启用服务器扩展:
^{pr2}$如果已安装并启用服务器扩展,但您没有看到 前端,检查前端是否已安装:
jupyter labextension list
如果已安装,请尝试:
jupyter lab clean jupyter lab build
贡献
安装
jlpm
命令是JupyterLab的pinned版本
yarn与JupyterLab一起安装。你可以用
yarn
或npm
代替下面的jlpm
。在
# Clone the repo to your local environment# Move to embl-tools-jl directory# Install server extension pip install -e . # Register server extension jupyter serverextension enable --py embl_tools_jl # Install dependencies jlpm # Build Typescript source jlpm build # Link your development version of the extension with JupyterLab jupyter labextension link . # 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
卸载
pip uninstall embl_tools_jl jupyter labextension uninstall embl-tools-jl
- 项目
标签: