跳转到主要内容

使用Python在Jupyter中构建现代UI

项目描述

ipyhtmx

使用Python在Jupyter中构建现代UI

安装

使用pip进行安装

$ pip install ipyhtmx

对于开发安装(需要Node.jsYarn版本1),

$ git clone https://github.com/davidbrochart/ipyhtmx.git
$ cd ipyhtmx
$ pip install -e .
$ jupyter nbextension install --py --symlink --overwrite --sys-prefix ipyhtmx
$ jupyter nbextension enable --py --sys-prefix ipyhtmx

当您积极开发JupyterLab扩展时,运行以下命令

$ jupyter labextension develop --overwrite ipyhtmx

然后您需要在进行代码更改时重新构建JS

$ cd js
$ yarn run build

然后当您的javascript发生变化时,您需要刷新JupyterLab页面。

项目详情


下载文件

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

源分布

ipyhtmx-0.1.0.tar.gz (246.1 kB 查看散列)

上传于

构建发行版

ipyhtmx-0.1.0-py3-none-any.whl (74.4 kB 查看哈希值)

上传于 Python 3

由以下支持