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
ipysketch_lite-0.2.8.tar.gz
(372.3 kB
view hashes)
Built Distribution
Close
Hashes for ipysketch_lite-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f99dba29561989f64aca660c2e47b48f8136ea0f3c2c4badba23468e7810385 |
|
MD5 | c92248ad50bb8d84f46a7d2a0599c7f4 |
|
BLAKE2b-256 | eeaa7d9f18a338675e9615422f694059b051dff402be81ce96202580a78c1c05 |