pi_service
调试
调试安装
# Clone the repo to your local environment
# Change directory to the pi_lab_jupyter_extension directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm run build
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab --ip 0.0.0.0 --port 8888 --watch
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
By default, the jlpm run build command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
jupyter lab build --minimize=False
卸载
# 卸载对应的python包
pip uninstall pi-lab-jupyter-extension
# 删除 通过`jupyter labextension develop .` 命令创建的软连接, 可以通过 `jupyter labextension list` 命令查看
jupyter labextension list
rm <labextension path>
发布 Pypi 包
This extension can be distributed as Python
packages. All of the Python
packaging instructions in the pyproject.toml file to wrap your extension in a
Python package. Before generating a package, we first need to install build.
# 安装 编译`build`工具, pypi上传工具`twine`
python3 -m pip install build twine
# 编译
# To create a Python source package (`.tar.gz`) and the binary package (`.whl`) in the `dist/` directory, do:
python -m build --wheel
# 上传到 pypi
twine check dist/*
安装
pip install pi-lab-jupyter-extension
# 指定特定版本
pip install pi-lab-jupyter-extension==0.0.1
使用
import pi_lab_jupyter_pi_service
pi_lab_jupyter_pi_service.auth
卸载
pip uninstall pi-lab-jupyter-extension
Metadata
Release files for pi-lab-jupyter-extension 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pi_lab_jupyter_extension-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pi_lab_jupyter_extension-0.0.1-py3-none-any.whl |
Release files / pi_lab_jupyter_extension-0.0.1-py3-none-any.whl
| Download URL | pi_lab_jupyter_extension-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a262b2a62237c2cd4ea129e030941bf5c8f786c160cc4da5eaf75d9e5dce340
|
|
BLAKE2b-256 checksum How to use checksums |
87edb3b520b918fdf16afc7eea4a6bf7416506bddd4b7c83bdb91a0dc5d24c54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for pi-lab-jupyter-extension 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.