Giter Site home page Giter Site logo

pyp5js about ipyp5 HOT 5 OPEN

jtpio avatar jtpio commented on July 23, 2024
pyp5js

from ipyp5.

Comments (5)

jtpio avatar jtpio commented on July 23, 2024 1

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.

from ipyp5.

jtpio avatar jtpio commented on July 23, 2024

It does looks like a great tool indeed.

Thanks @jf--- for sharing this!

from ipyp5.

jaladh-singhal avatar jaladh-singhal commented on July 23, 2024

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. 🙌

from ipyp5.

berinhard avatar berinhard commented on July 23, 2024

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.

from ipyp5.

jtpio avatar jtpio commented on July 23, 2024

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).

from ipyp5.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.