jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

Can we use Processing.py in other development environments? #279

Open scottie-uk opened 4 years ago

scottie-uk commented 4 years ago

I would like to use Processing.py in other Python development environments than Processing as I do not want students learning yet another IDE, but want them focusing on applying Processing to what they already have learned about Python using the Pyzo IDE.

It it easy to have Pyzo and Python work with Processing.py? Or does this need an administrator to specifically prepare Pyzo and Python 3 to incorporate it without Processing?

villares commented 4 years ago

Hi @scottie-uk

There are people using Processing Python Mode in other IDEs but it's not very practical I guess. Have a look at this forum post: https://discourse.processing.org/t/tutorial-running-python-mode-in-vscode/7716

Bear in mind that Processing Python Mode has its own Python interpreter (Jython) and the Processing IDE has no modes at this point to handle any other Python.

If you are looking for an educational Python IDE that comes with Python 3, and no Processing :( I would try thonny.org

lenrik1589 commented 3 years ago

Processing Python Mode has its own Python interpreter (Jython)

I have a problem with this Interpreter, as it's unable to recognize features (such as typed function arguments, f-strings, return types etc.) I'm using normally in python and it's annoying, was hoping to use processing for UI but if i can't use my features, ohwell

villares commented 3 years ago

Processing Python Mode has its own Python interpreter (Jython)

I have a problem with this Interpreter, as it's unable to recognize features (such as typed function arguments, f-strings, return types etc.) I'm using normally in python and it's annoying, was hoping to use processing for UI but if i can't use my features, ohwell

Hi @lenrik1589 , perhaps you should read more about this project.

We all would love to have Python 3, but at this point this is completely out of scope. This is not a a tool for Python developers (as you indicated you would like to use it for UI), this is a tool for artists, and Jython, in this context, has a lot of advantages, a very rich ecosystem of Processing community (Java) libraries. You can learn more about it here: https://py.processing.org/tutorials/python-jython-java/ and here: http://processing.org

If you have the time and skills to help, there are very preliminary studies to move away from Jython, but it will take a lot of time and effort.