jtpio / ipyp5

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

Install Error #19

Open lmerritt47 opened 2 years ago

lmerritt47 commented 2 years ago

IPYP5 Install Error

Is there a specific version of Python needed for this package to run? I'm trying to add this package to a new environment in Jupyter Notebooks but it's not working very well. I'd love to utilize this package to make a P5 tutorial for my college course. When I tried to download the ipyp5 package locally I kept getting the error: no module found. Is there a workaround for this or has this project kind of gone by the wayside? Any information is greatly appreciated.

jtpio commented 2 years ago

Thanks @lmerritt47.

Unfortunately this project has been lagging a bit behind, but will hopefully be updated at some point soon.

In the meantime some efforts have been put into jupyterlite which is an in-browser JupyterLab distribution that also includes a p5.js kernel (in JavaScript not in Python): https://github.com/jupyterlite/jupyterlite/

lmerritt47 commented 2 years ago

Thanks for your response, Does the P5 kernel on JupyterLite utilize the same conventions that the p5js.org website uses? Such as:

function setup () { } function draw () { }

Or is there a different way that it's coded?

jtpio commented 2 years ago

Yes. There is this example: https://jupyterlite.github.io/demo/retro/notebooks/?path=p5.ipynb

image

Coming from this repo: https://github.com/jupyterlite/demo