Skip to content
🧬 A JupyterLab extension for annotating data with Prodigy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
binder Upgrade to jupyterlab 1.0.0rc0 Jun 24, 2019
notebooks Update notebook Jun 24, 2019
src Run prettier Jun 24, 2019
style Add jupyterlab extension Apr 8, 2019
.gitignore
.prettierrc Initial commit Apr 8, 2019
LICENSE.txt
MANIFEST.in Initial commit Apr 8, 2019
README.md Update README.md Jun 24, 2019
package.json Upgrade to jupyterlab 1.0.0 Jul 2, 2019
tsconfig.json Initial commit Apr 8, 2019
yarn.lock Add prettier git hook Jun 24, 2019

README.md

jupyterlab-prodigy

This repo contains a JupyterLab extension for Prodigy, our scriptable annotation tool for creating training data for machine learning models. In order to use this extension, you'll need a license for Prodigy – see this page for more details. For questions, please use the Prodigy Support Forum. If you've found a bug, feel free to submit a pull request.

🙏 Special thanks to Jupyter core dev Grant Nestor for building this extension for us!

Binder npm

jupyterlab-prodigy

⌛️ Installation

To use this extension, you need JupyterLab >= 1.0.0 ⚠️ and Prodigy.

pip install jupyterlab==1.0.0rc0
jupyter labextension install jupyterlab-prodigy

📋Usage

Prodigy can be run using the prodigy command line utility or the Python library. When the server starts, a new tab with the Prodigy app will be opened automatically in your JupyterLab workspace.

In a notebook or console cell

!prodigy ner.teach my_set en_core_web_sm news_headlines.jsonl

From the JupyterLab terminal

prodigy ner.teach my_set en_core_web_sm news_headlines.jsonl

From Python

prodigy.serve('ner.teach', 'my_set', 'en_core_web_sm', 'news_headlines.jsonl',
              None, None, ['PERSON', 'ORG'], None, None)

👩‍💻Develop

git clone https://github.com/explosion/jupyterlab-prodigy
cd jupyterlab-prodigy

# Install Javascript dependencies
npm install # or yarn

# Build JupyterLab extension
npm run build # or yarn build
jupyter labextension link .

To rebuild the JupyterLab extension:

npm run build # or yarn build
jupyter lab build

To rebuild the JupyterLab extension automatically as the source changes:

# In one terminal tab, watch the jupyterlab-prodigy directory
npm run watch # or yarn watch

# In another terminal tab, run jupyterlab with the watch flag
jupyter lab --watch
You can’t perform that action at this time.