SWAN的帮助面板
swanhelp的Python项目详细描述
灌木丛
SWAN帮助面板
这个扩展由一个名为swanhelp
的Python包和一个名为@swan-cern/swanhelp
的NPM包组成
用于JupyterLab分机。在
要求
- JupyterLab>;=2.0
安装
注意:您需要NodeJS来安装扩展。在
pip install swanhelp
jupyter nbextension install swanhelp --py
jupyter nbextension enable swanhelp --py
jupyter lab build
故障排除
如果没有看到前端,请检查是否已安装:
^{pr2}$如果已安装,请尝试:
jupyter lab clean jupyter lab build
贡献
安装
jlpm
命令是JupyterLab的pinned版本
yarn与JupyterLab一起安装。你可以用
yarn
或npm
代替下面的jlpm
。在
# Clone the repo to your local environment# Move to swanhelp directory# Install server extension# This will also build the js code pip install -e . # Install and enable the nbextension jupyter nbextension install swanhelp --py --sys-prefix jupyter nbextension enable swanhelp --py --sys-prefix # Link your development version of the extension with JupyterLab jupyter labextension link . # Rebuild JupyterLab after making any changes jupyter lab build # 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 swanhelp jupyter labextension uninstall @swan-cern/swanhelp
- 项目
标签: