Skip to main content

在 JupyterLab 面板中随机显示 NASA 每日天文图片

项目描述

jupyterlab_apod

Github 操作状态粘合剂

在 JupyterLab 面板中随机显示 NASA 每日天文图片

要求

  • JupyterLab >= 3.0

安装

pip install jupyterlab_apod

贡献

开发安装

注意:您将需要 NodeJS 来构建扩展包。

该jlpm命令是与 JupyterLab 一起安装的 JupyterLab 的固定版本 yarn。您可以使用 yarn或npm代替jlpm以下。

# Clone the repo to your local environment
# Change directory to the jupyterlab_apod directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop .
# 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

运行 watch 命令后,每个保存的更改都将立即在本地构建并在您正在运行的 JupyterLab 中可用。刷新 JupyterLab 以在浏览器中加载更改(您可能需要等待几秒钟才能重建扩展)。

卸载

pip uninstall jupyterlab_apod
jupyter labextension uninstall jupyterlab_apod

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

jupyterlab_apod-0.1.0.tar.gz (28.2 kB 查看哈希)

已上传 source

内置分布

jupyterlab_apod-0.1.0-py3-none-any.whl (61.6 kB 查看哈希)

已上传 py3