Skip to main content

Simple sketching tool for Jupyter notebooks

Project description

ipysketch_lite 🎨

PyPI Docs Jupyterlite

ipysketch_lite is a simple interactive sketching tool for Jupyter notebooks. After drawing a sketch you can use it directly in your Jupyter notebook. When changes are made to the sketch, the image data in Python is updated.

demo

Try it out in JupyterLite: Jupyterlite

Documentation 📖

You can view the documentation at: https://matthewandretaylor.github.io/ipysketch_lite

Install 🛠️

You can install using pip:

pip install ipysketch-lite

Or using piplite if you are using Jupyter lite

import piplite
await piplite.install("ipysketch_lite")

Quickstart 🚀

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 data in python

sketch.data # Sketch image data as a base64 encoded string
sketch.image # PIL Image of the sketch

example sketch

Sketch data gets updated in cells after the sketch is modified. This means you can edit your sketch and get the new updated outputs

Using your own drawing API 🖌️

You can extend ipysketch_lite to use your own JavaScript drawing library by subclassing Sketch and customizing the frontend template. See the custom_sketch.ipynb notebook for an example.


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.5.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

ipysketch_lite-0.5.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipysketch_lite-0.5.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ipysketch_lite-0.5.0.tar.gz
Algorithm Hash digest
SHA256 93afce5268b9792587bbb4ce520d2f48cded08b90def17555c97c1de1d3ad077
MD5 ed9732e9d681591c075f99652fbf7db4
BLAKE2b-256 849059ece862538cc6fee586b162830a23d3cde6bc93218b94d9745a39239340

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on MatthewAndreTaylor/ipysketch_lite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ipysketch_lite-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ipysketch_lite-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc2048ef710a1f00f7e85503afdba87991c33df0b2b0d1ac1b96fda867aced23
MD5 b19c7209e3519b94e5f16f473eb0393f
BLAKE2b-256 0cf7517b7c3a0a227a88f675d01604573b2885a367fb2da17569682a0f0ee2fd

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on MatthewAndreTaylor/ipysketch_lite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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