Open
Description
canvas = Canvas(width=200, height=200, sync_image_data=True)
canvas.fill_styled_rects(20, 20, 50, 50, color=[0,0,0])
canvas.to_file('test.png')
Traceback (most recent call last):
File "/home/jzj/test.py", line 58, in <module>
canvas.to_file('test.png')
File "/home/jzj/miniconda3/lib/python3.9/site-packages/ipycanvas/canvas.py", line 420, in to_file
raise RuntimeError(
RuntimeError: No image data to save, please be sure that ``sync_image_data`` is set to True
Metadata
Assignees
Labels
No labels