question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Would it be possible to remove Jython dependency to support Python 3?

See original GitHub issue

Hi @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:closed
  • Created 4 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

8reactions
mpsftwcommented, May 26, 2020

Yeah, it feels pretty promising at this point. I don’t want to get ahead of myself, though.

image

6reactions
hx2Acommented, May 29, 2021

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jython 3 Features and MVP
Jython 3 Features and a Viable Minimum. This is a discussion document that attempts to describe, and to some extent prioritise, features for...
Read more >
Moving from Jython to GraalVM - Medium
With Python on GraalVM the same is possible. While it's not a drop-in replacement, we believe that Python on GraalVM offers the easiest ......
Read more >
Appendix A: Using Other Tools with Jython
The primary focus of this appendix is to provide information on using some external python packages with Jython. In some circumstances, the tools...
Read more >
Support for Python 3 · Issue #80 · robotframework/MavenPlugin
I now intend to utilize robotframework-maven-plugin and add my python based robotframework libraries as POM dependencies. I was able to achieve ...
Read more >
Launch a Jython script from a Python3 script (incompatibility of ...
If I start the main Python script with Jython I get a ton of lbraries errors because it uses Python2 following what I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found