jtpio / ipyp5

p5.js Jupyter Widget
BSD 3-Clause "New" or "Revised" License
41 stars 5 forks source link

'Sketch' #9

Open ChMaDowns opened 4 years ago

ChMaDowns commented 4 years ago

I just got ipyp5 and am trying out the example you give in JupyterLab (I'm brand new to JupyterLab/Jupyter Notebook). I'm getting an ImportError: cannot import name 'Sketch' from 'ipyp5' (unknown location). Where should it be?

jtpio commented 4 years ago

hey, thanks for trying it out!

Have you run the import command to import Sketch?

from ipyp5 import Sketch

There is also a Binder link if you want to try it in the browser without installing anything:

Binder