Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyp5js #4

Open
jf--- opened this issue Jul 1, 2019 · 5 comments
Open

pyp5js #4

jf--- opened this issue Jul 1, 2019 · 5 comments

Comments

@jf---
Copy link

jf--- commented Jul 1, 2019

The readme.md states that

The ideal goal (disclaimer: not implemented yet) would be to write code like this in a notebook cell

looks like pyp5js just might be the ticket?

@jtpio
Copy link
Owner

jtpio commented Jul 3, 2019

It does looks like a great tool indeed.

Thanks @jf--- for sharing this!

@jaladh-singhal
Copy link

jaladh-singhal commented Nov 1, 2020

I was about open an issue to share pyp5js which can be helpful to this project to achieve its goals.

Apparently pyp5js, don't really allows you to display canvas within Jupyter notebook but in a separate html file running on a http server. @jtpio I'd really love to see that ipyp5 can utilize pyp5js in some way to make p5.js work within notebook as widgets while allowing to write pure native Python code. 🙌

@jtpio
Copy link
Owner

jtpio commented Nov 2, 2020

Thanks @jaladh-singhal!

Yes pyp5js looks like the most promising way to get that to work.

Maybe using a pyodide mode: berinhard/pyp5js#124

Or using some parts from berinhard/pyp5js#123, with direct calls to pyodide.runPython(code) from the widget frontend.

@berinhard
Copy link

Hi everyone! Veeeery cool project you're developing over here! Let me know how I can help with anything. About the pyodide integration, I organized it a little bit better in this demo. It's still a proof of concept and a few things can break (pop for example), but at least it's a reference.

I'll watch the repo and check if I can help with something. I've went through a lot of things trying to make pyp5js to work that can sum to ipyp5 as well.

@jtpio
Copy link
Owner

jtpio commented Nov 5, 2020

Thanks @berinhard!

This demo is going to be very useful, and the project is really exciting!

Looks like it might actually be simpler to try this approach of using pyp5js with pyodide in the p5 notebook first: jtpio/p5-notebook#50

This would leave the issue of syncing the Python code over websockets using the Jupyter Widget protocol for later (but the learnings from p5 notebook could probably be backported here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants