Skip to main content

Simple sketching tool for Jupyter notebooks

Project description

ipysketch_lite

A lite sketching utility for python notebooks, no sockets or extra dependencies 🎨

(no extra widget code)

Make sketches right in your notebook then use the sketch in your python code.

Try yourself:

jupyterlite badge

demo

PyPI Docs

Quickstart

To get started pip install the extension from PyPI

This can be done using pip for jupyter environments

pip install ipysketch-lite

Or using piplite if you are using jupyter lite

import piplite
await piplite.install("ipysketch_lite[extra]") # install the package and optionally pillow and numpy for the extra features

Start drawing a quick sketch in your notebook like this

from ipysketch_lite import Sketch

sketch = Sketch()

Then add a new cell to retrieve the sketch in python

sketch.data # Sketch image data as a base64 encoded string
import matplotlib.pyplot as plt

# Plot the sketch image or do image manipulation
plt.imshow(sketch.image)
plt.show()

example sketch

Sketches get updated in cells after draw updates

This means you can continue your sketch and get the new updated outputs

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

ipysketch_lite-0.3.1.tar.gz (372.9 kB view details)

Uploaded Source

Built Distribution

ipysketch_lite-0.3.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file ipysketch_lite-0.3.1.tar.gz.

File metadata

  • Download URL: ipysketch_lite-0.3.1.tar.gz
  • Upload date:
  • Size: 372.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ipysketch_lite-0.3.1.tar.gz
Algorithm Hash digest
SHA256 301ec90ba07b4e7f9a393c9eb9b5a40bd024d9f239f6961fe8b71367f37e11b2
MD5 6bbdf5caa073b0f26fe53ab7a4d5b913
BLAKE2b-256 0cbe572f24f091e5e25142f74c081c707faf4c287578ef035518364b1d686ddf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipysketch_lite-0.3.1.tar.gz:

Publisher: GitHub
  • Repository: MatthewAndreTaylor/ipysketch_lite
  • Workflow: python-publish.yml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: ipysketch_lite-0.3.1.tar.gz
    • Subject digest: 301ec90ba07b4e7f9a393c9eb9b5a40bd024d9f239f6961fe8b71367f37e11b2
    • Transparency log index: 148029651
    • Transparency log integration time:

File details

Details for the file ipysketch_lite-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ipysketch_lite-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc52e2eb78726f5a461c8b92ec95bf65dce21b2699d72526a27aa9f8e8b4cde3
MD5 6e6565eb102f1573073dd574093bc123
BLAKE2b-256 7d5a2e4ebebbbab26933fd90e585fc32d184847b649ae6a3663eb37942f1b98c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipysketch_lite-0.3.1-py3-none-any.whl:

Publisher: GitHub
  • Repository: MatthewAndreTaylor/ipysketch_lite
  • Workflow: python-publish.yml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: ipysketch_lite-0.3.1-py3-none-any.whl
    • Subject digest: cc52e2eb78726f5a461c8b92ec95bf65dce21b2699d72526a27aa9f8e8b4cde3
    • Transparency log index: 148029653
    • Transparency log integration time:

Supported by

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