Jupyter Interactive Cropping Widget
An interactive widget to rapidly crop images in Jupyter notebooks.
Widget Documentation, Examples, and Use
This widget can be found on the PyPI repository here, and can be installed via pip install interactivecrop.
Build Instructions
Install Jupyter and enable ipywidgets
After cloning this repo, you can build the widget from source and use in a jupyter lab/notebook instance. Before this widget will work properly, you will need to install and enable jupyter widgets. To enable the widgets for Jupyter Lab using pip follow the below commands:
pip install jupyterlab #installs jupyter lab and gives access to jupyter lab CLI
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
* Feel free to run this in your default python environment or a separate kernel; If using a separate kernel make sure it has been added to the available kernels via the ipykernels package
Installing requirements for this widget
Once Jupyter has been installed and enabled, check that all requirements have been downloaded by running pip install -r requirements.txt from this directory. Then, open up a jupyter lab instance by running jupyter lab, and once inside try the below example using the images in the sample_image directory:
from interactivecrop.interactivecrop import main as crop
from interactivecrop.samples import sample_images, sample_names
crop(sample_images,image_name_list = sample_names)
For further examples of cropper use, see the Examples.ipynb (make sure to run the jupyter lab startup command from the root directory when running Examples.ipynb).
Metadata
Release files for interactivecrop 0.0.10
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 |
|---|---|---|---|---|
| interactivecrop-0.0.10.tar.gz | 1.3 MB | Without provenance | Details for interactivecrop-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| interactivecrop-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for interactivecrop-0.0.10-py3-none-any.whl |
Total release size: 2.6 MB
Release files / interactivecrop-0.0.10.tar.gz
| Download URL | interactivecrop-0.0.10.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cc35be60b178599823f378a1c18476411365cc0bff1d1811957913757c0aeaa
|
|
BLAKE2b-256 checksum How to use checksums |
17aa32ef4a22db8573193f8551a8500fb5f578019d77b489292edaad9324b3a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / interactivecrop-0.0.10-py3-none-any.whl
| Download URL | interactivecrop-0.0.10-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fadded14b6a52295bef590e7cc3abc361a91829de02f1a450353781aa6c154a
|
|
BLAKE2b-256 checksum How to use checksums |
92e85437b16be8ad45891fb46c61a246104f0d1287929a8cb880551eb48b3207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for interactivecrop 0.0.10
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.