jtpio / ipyp5

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

p5.js Jyve Kernel #8

Open westurner opened 4 years ago

westurner commented 4 years ago

There's a p5.js kernel for Jyve that may also be useful for this project? Jyve is JupyterLab compiled to run in a browser without any backend. Src: https://github.com/deathbeds/jyve Demo: https://deathbeds.github.io/jyve/lab/

p5.js JupyterLab NPM package: https://github.com/deathbeds/jyve/tree/master/packages/jyve-kyrnel-p5-unsafe

This seems to work in the demo:

// restart and run all
function setup() { createCanvas(100, 100) }
function draw() { rect(10, 20, 55, 55) }

A number of things are not yet implemented in Jyve; including:

jtpio commented 4 years ago

Thanks @westurner for sharing that, it looks cool indeed!

I think the goal of ipyp5 would be to still write Python code and use the existing Python kernels (ipykernel or xeus-python), and write the p5.js code in Python too.

Using pyp5js (https://github.com/jtpio/ipyp5/issues/4) or transcrypt directly to generate the p5 (JS) code and push it to the frontend via the widgets protocol.

westurner commented 4 years ago

:+1:

On Monday, October 28, 2019, Jeremy Tuloup notifications@github.com wrote:

Thanks @westurner for sharing that, it looks cool indeed!

I think the goal of ipyp5 would be to still write Python code and use the existing Python kernels (ipykernel or xeus-python), and write the p5.js code in Python too.

Using pyp5js (#4) or transcrypt directly to generate the p5 (JS) code and push it to the frontend via the widgets protocol.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.