Would it be possible to remove Jython dependency to support Python 3?
See original GitHub issueHi @jdf, first of all, thanks for your work on maintaining Processing’s Python Mode! I was introduced to Processing by it and, so far, it’s being a joyful journey.
One thing I noticed is that there are some projects to use Python3 with creative coding and I even wrote myself one of them called pyp5js. I know these projects are being created because Jython doesn’t have any roadmap to support Python 3, thus, processing.py remains stuck with Python 2. Although these py3 ports provide the benefit of using Python 3, they have with a huge downside IMHO which is losing compatibility with all the other Processing libraries, such as processing.pdf
or processing.svg
.
Recently, I’ve discovered 2 other alternatives to integrate Python 3 with Java:
Do you think it would be possible to replace Jython by one of these solutions? Is there a possible minimum prototype to study the viability of doing so? Let me know how I could help with this because I’m very interested and willing to help on moving processing.py to Python 3 👍
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (9 by maintainers)
Top GitHub Comments
Yeah, it feels pretty promising at this point. I don’t want to get ahead of myself, though.
Greetings-
I have built a new Python version of Processing and am looking for feedback. This isn’t ready to share with the world, but the present functionality does work well. I’m hoping some people who are familiar with Processing and Python can give it a try. This thread seems like a good place to find people who are interested. 😃
py5 uses jpype and requires Python 3.8. It supports all of Processing’s functionality and renderers. I added new features to provide integration with the Python ecosystem. There’s also support for Jupyter notebooks.
The documentation website is a work in progress:
http://py5.ixora.io/
The reference documentation is solid but the how-tos and tutorials are incomplete. There are special notes for Mac users due to an open jpype issue.
These are the relevant github repos:
https://github.com/hx2A/py5 https://github.com/hx2A/py5generator
Any questions, please ask!