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:
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()
Sketches get updated in cells after draw updates
This means you can continue your sketch and get the new updated outputs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ipysketch_lite-0.2.7.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5351d9b1faf6dd0b253fbfe7b0f3728ac5ac275e2d445e8cf1ae1a0389fd4522 |
|
MD5 | 164aa8e91c31a2bef9bd08a8e42f1607 |
|
BLAKE2b-256 | 2576e6b6e7bae83529762ed7d838202c996c129da3b8d0a1330657941b77e709 |
Close
Hashes for ipysketch_lite-0.2.7.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 006360dc2721d29e6c9a48a12b6cedb0477e2f4904cb8c215b45aab14f60c49e |
|
MD5 | 3aaaddec60ce6d2a36988a39cb6bea97 |
|
BLAKE2b-256 | 9c219e6dbe4734950153a3e087ee531bbdefc4bfa87f00c413fe1f2614f950c1 |