Skip to main content

ipylabel

A Jupyter Widget Library for labeling text.

Status Build Status Documentation Status
Try for yourself Binder Open In Colab
Package repositories npm PyPI

Installation

You can install using pip:

pip install ipylabel

If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:

jupyter nbextension enable --py [--sys-prefix|--user|--system] ipylabel

Development Installation

Create a dev environment:

conda create -n ipylabel -c conda-forge nodejs yarn python=3.6 jupyterlab jupyter-packaging
conda activate ipylabel

Install the python. This will also build the TS package.

pip install -e ".[test, examples]"

When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:

jupyter labextension develop --overwrite .
npm run build

For classic notebook, you need to run:

jupyter nbextension install --sys-prefix --symlink --overwrite --py ipylabel
jupyter nbextension enable --sys-prefix --py ipylabel

Note that the --symlink flag doesn't work on Windows, so you will here have to run the install command every time that you rebuild your extension. For certain installations you might also need another flag instead of --sys-prefix, but we won't cover the meaning of those flags here.

How to see your changes

Typescript:

If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the widget.

# Watch the source directory in one terminal, automatically rebuilding when needed
npm run watch
# Run JupyterLab in another terminal
jupyter lab

After a change wait for the build to finish and then refresh your browser and the changes should take effect.

Python:

If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.

TODO:

  • add packages to regestries (pypi and npm)
  • ensure google colab compatability
  • jupyter binder support!
  • add black
    • add vscode task
    • possible extension
    • add config
    • add badge
  • add isort
    • add vscode task
    • add vscode extension
    • add config with support for black
    • add badge
  • add prettier
    • add badge
  • add stylelint
    • add badge
  • add linting task to vscode
  • add code coverage with budge
  • prebuild images for binder
  • auto badges on pull request?

Metadata

Release files for ipylabel 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipylabel 0.1.7
File Size Uploaded
ipylabel-0.1.7.tar.gz 397.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipylabel 0.1.7
File Interpreter ABI Platform
ipylabel-0.1.7-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 832.2 kB

Release files / ipylabel-0.1.7.tar.gz

Download URL ipylabel-0.1.7.tar.gz
Size 397.0 kB
Tags Source
SHA-256 checksum
How to use checksums
868545acc6879b675dc55e8a6efb9457ccdb399e2b73d59106ff7d67d8016180
BLAKE2b-256 checksum
How to use checksums
1ae902ec13629e5dfb1dc8b0c5ea897b76483ca5271f79b20c9934e91c7817b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / ipylabel-0.1.7-py2.py3-none-any.whl

Download URL ipylabel-0.1.7-py2.py3-none-any.whl
Size 435.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
38531536fe3cad03013fc1f1e8d8b41a2e293e6d3f08e6a60df8b55ef2f39bea
BLAKE2b-256 checksum
How to use checksums
8e1868f41dce70ec88a115ba9f45e1ed2a64a31e26c4b686305cb01264d9022c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page