Skip to main content

A Custom Jupyter Widget Library

Project description

ipypolaroid

Build Status codecov

A Custom Jupyter Widget Library

Installation

You can install using pip:

pip install ipypolaroid

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] ipypolaroid

Development Installation

Create a dev environment:

conda create -n ipypolaroid-dev -c conda-forge nodejs yarn python jupyterlab
conda activate ipypolaroid-dev

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 .
yarn run build

For classic notebook, you need to run:

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

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
yarn 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.

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

ipypolaroid-0.1.1.dev0.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

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

ipypolaroid-0.1.1.dev0-py2.py3-none-any.whl (7.9 MB view details)

Uploaded Python 2Python 3

File details

Details for the file ipypolaroid-0.1.1.dev0.tar.gz.

File metadata

  • Download URL: ipypolaroid-0.1.1.dev0.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for ipypolaroid-0.1.1.dev0.tar.gz
Algorithm Hash digest
SHA256 2e53ff949f707cfbb3aaff1c130dae5a32cae6ef595bc564e99bd9a91ef59cf0
MD5 1807fdd61867112376bde900263f3142
BLAKE2b-256 bf097cce9c8d2be04239e148f91bcd377fe049c4fbc5fd628ac9cce96ce6c347

See more details on using hashes here.

File details

Details for the file ipypolaroid-0.1.1.dev0-py2.py3-none-any.whl.

File metadata

  • Download URL: ipypolaroid-0.1.1.dev0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.9 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for ipypolaroid-0.1.1.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2915de59cc8e31f6d97f65b0eae11b9bd1332a37ec848e06a3cf03f01712416c
MD5 4de0de9e6a0ec4af07331a544029a494
BLAKE2b-256 8546cc762836f9bd4d05f5123a14908c9504af058eebec46245c237cdc252232

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