Skip to main content

A Jupyter Widget Library for labeling text.

Project description

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?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipylabel-0.1.7.tar.gz (397.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipylabel-0.1.7-py2.py3-none-any.whl (435.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ipylabel-0.1.7.tar.gz.

File metadata

  • Download URL: ipylabel-0.1.7.tar.gz
  • Upload date:
  • Size: 397.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ipylabel-0.1.7.tar.gz
Algorithm Hash digest
SHA256 868545acc6879b675dc55e8a6efb9457ccdb399e2b73d59106ff7d67d8016180
MD5 bc416a327fa292dbefb0b8db9188b5f0
BLAKE2b-256 1ae902ec13629e5dfb1dc8b0c5ea897b76483ca5271f79b20c9934e91c7817b6

See more details on using hashes here.

File details

Details for the file ipylabel-0.1.7-py2.py3-none-any.whl.

File metadata

  • Download URL: ipylabel-0.1.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 435.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ipylabel-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 38531536fe3cad03013fc1f1e8d8b41a2e293e6d3f08e6a60df8b55ef2f39bea
MD5 1a8e2d20659b1383a70d5d4157f53e70
BLAKE2b-256 8e1868f41dce70ec88a115ba9f45e1ed2a64a31e26c4b686305cb01264d9022c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page