Metadata-Version: 2.3
Name: ipysketch-lite
Version: 0.2.4
Summary: Simple sketching tool for Jupyter notebooks
Project-URL: Homepage, https://github.com/MatthewAndreTaylor/ipysketch_lite
Author-email: Matthew Taylor <matthew.taylor.andre@gmail.com>
License: Copyright (c) 2024 Matthew Andre Taylor
License-File: LICENSE
Keywords: canvas,drawing,jupyter,sketch
Classifier: Framework :: Jupyter
Classifier: Framework :: Jupyter :: JupyterLab
Classifier: Framework :: Jupyter :: JupyterLab :: 4
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Provides-Extra: extras
Requires-Dist: numpy; extra == 'extras'
Requires-Dist: pillow; extra == 'extras'
Provides-Extra: test
Requires-Dist: matplotlib; extra == 'test'
Requires-Dist: numpy; extra == 'test'
Requires-Dist: pillow; extra == 'test'
Requires-Dist: torch; extra == 'test'
Requires-Dist: torchvision; extra == 'test'
Description-Content-Type: text/markdown

# 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:

<a href="https://matthewandretaylor.github.io/ipysketch_lite/jupyterlite/lab/index.html">
<img alt="jupyterlite badge" src="https://jupyterlite.rtfd.io/en/latest/_static/badge.svg">
</a>

## Quickstart

Start drawing a quick sketch in your notebook like this

```py
from ipysketch_lite import Sketch

sketch = Sketch()
```

Then add a new cell to retrieve the sketch in python

```py
print(sketch.get_output())

import matplotlib.pyplot as plt

plt.imshow(sketch.get_output_array())
```

![example sketch](https://github.com/MatthewAndreTaylor/ipysketch_lite/blob/main/sketches/example.png?raw=true)

Sketches get updated in cells after draw updates

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