跳转到主要内容

JupyterLab扩展,用于显示浏览器开发工具控制台中的js日志

项目描述

jupyterlab-js-logs

Github Actions Status Binder

JupyterLab扩展,用于显示浏览器开发工具控制台中的js日志

screencast

需求

  • JupyterLab >= 2.0

安装

jupyter labextension install jupyterlab-js-logs

贡献

此扩展是从由Carlos Herrero贡献的自定义日志控制台示例启动的,该示例来自jupyterlab-extension-examples存储库。

安装

jlpm命令是JupyterLab附带安装的yarn的固定版本。您可以使用下面的yarnnpm代替jlpm

# Clone the repo to your local environment
# Move to jupyterlab-js-logs directory

# Install dependencies
jlpm
# Build Typescript source
jlpm build
# Link your development version of the extension with JupyterLab
jupyter labextension install .
# 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秒以上)。

卸载

jupyter labextension uninstall jupyterlab-js-logs

由以下支持