labext
Overview
This library provides pre-built widgets and integrates some additional JS libraries to provide an even better experience to work with data in Jupyter Lab.
Features:
- Better display for pandas data frame.
- Pop-over content, allowing to show additional content when hovering over a DOM element.
- Widgets for interactive labeling/annotating data in Jupyter Lab.
Usage
See the Demo notebook for how to use the library. Demo:
-
Converting DataFrame to DataTable
-
Pop-over (Tippy)
-
Slider
-
Annotator
Installation
Docker
I provide a Dockerfile that create a base environment to run this library. To run the demo notebook in docker, you can use docker-compose to start a jupyter lab:
docker-compose up
Manual
To use this with JupyterLab, you need to have requirejs enable in Jupyter by installing either:
- https://github.com/DraTeots/jupyterlab_requirejs (jupyterlab version <= 1.*)
- https://github.com/binh-vu/jupyterlab_requirejs (jupyterlab version >= 2.*)
Beside requirejs, you also need to have ipywidgets, ipyevents, ipycallback
pip install ipywidgets ipyevents ipycallback
jupyter nbextension enable --py widgetsnbextension
jupyter nbextension enable --py --sys-prefix ipyevents
jupyter labextension install @jupyter-widgets/jupyterlab-manager ipyevents ipycallback
Finally, install this package directly from pypi:
pip install -U labext
Development
To compile the typescript files you need to install:
npm install @types/jquery
Then compiles all .ts files, remove--watch if you don't want to monitor for changes.
tsc --target es2017 --watch **/*.ts
Metadata
Release files for labext 4.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| labext-4.1.6.tar.gz | 397.9 kB | Without provenance | Details for labext-4.1.6.tar.gz |
Release files / labext-4.1.6.tar.gz
| Download URL | labext-4.1.6.tar.gz |
|---|---|
| Size | 397.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c22038e309ca71b616d8e4b5b9405e9b967321037adabf8e4c4fe58923fafbfb
|
|
BLAKE2b-256 checksum How to use checksums |
3cf3830b25b264fefc19354f850fe346a77f17b58014c8b1eb8fb7f4ad357f3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Security for labext 4.1.6
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.