Comments (5)
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.
It does looks like a great tool indeed.
Thanks @jf--- for sharing this!
from ipyp5.
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.
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.
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)
- Install Error HOT 3
- File nbextension/static/index.js missing when installing HOT 3
- p5.js Jyve Kernel HOT 2
- 'Sketch' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipyp5.