基于Jupyter和Gramps构建的在线家谱程序
项目描述
glab
这是一个基于Jupyter和Gramps构建的在线家谱程序。
此扩展由一个名为 glab
的服务器扩展Python包和一个名为 glab
的前端扩展NPM包组成。
要求
- JupyterLab >= 2.0
安装
注意:安装扩展需要NodeJS。
pip install glab
jupyter lab build
故障排除
如果您看到前端扩展但无法使用,请检查服务器扩展是否已启用
jupyter serverextension list
如果服务器扩展已安装并启用,但您未看到前端,请检查前端是否已安装
jupyter labextension list
如果已安装,请尝试
jupyter lab clean
jupyter lab build
贡献
安装
jlpm
命令是JupyterLab附带的 yarn 的固定版本。您可以使用 yarn
或 npm
替代 jlpm
。
# Clone the repo to your local environment
# Move to glab directory
# Install server extension
pip install -e . --prefix=~/.local/
# Register server extension
jupyter serverextension enable --py glab --user
# Check to see if it is installed:
jupyter serverextension list
# Install dependencies
jlpm
# Build Typescript source
jlpm build
# Link your development version of the extension with JupyterLab
jupyter labextension install .
# Check to see if it is installed:
jupyter labextension list
# 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秒以上)。
卸载
pip uninstall glab
jupyter labextension uninstall glab
项目详情
关闭
glab-0.1.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 941e7148edf52628db4e19f80976f06f6586060350b2a9e560b1f9e8751222f9 |
|
MD5 | 9a8d0b72ae77cd93a5df1749c9795443 |
|
BLAKE2b-256 | a8c7c6c4ec50c7a52682b4236c4c35926130caa30e3f45cb0fec060eac30d707 |