Hi @abhikpal, thanks for your reply!
I’m familiar with your work with p5 and I’ve already even tested it. I really think it’s a very notable and promising work, although I don’t like with some of the code design decisions because they break existing Python mode sketches (for example the renamed methods from a camel case syntax to a more pythonic way). But, please, keep on with your work because I really think it’s very important to the Python community =]
About pyp5js, here are my thoughts:
1 - The reason is that Transcrypt was the best tool I was able to use for the job because of the reasons described in my previous comment. But I also think pyp5js had a different goal than p5py because I wanted to take a step further beyond writing sketches with Python code. My main goal was to share my sketches online with my friends and members of Brazil’s creative coding community. To do so, for now, I need to transcribe it to Javascript code. But I really think that, in a very close future, I won’t need this transcription anymore. More details about this in answer number 2.
2 - In the present, unfortunately, no. We can use only Python libs with JS compatible versions implemented by Transcrypt. But I don’t think pyp5js will rely on Transcrypt forever… There’s a lot of ongoing work on porting Python to the web, including the majority of its scientific stack, under the pyodide project. The project, supported by Mozilla, compiles the CPython to Webassembly giving us the ability to run pure Python code in the browser. I’m following the work closely because it’ll enable pyp5js not only to use all CPython libs, but also to directly manipulate all of the browsers APIs, including the DOM and the Canvas. This will open new paths on rewriting the pyp5js that I’m really interested on exploring.
Thanks,