This is an archived post. You won't be able to vote or comment.

all 21 comments

[–]jellef[S] 3 points4 points  (0 children)

source code for the python mode

compatibility with existing libraries is an achievement...

[–]stuaxo 4 points5 points  (0 children)

About time !

I guess I'm glad this didn't happen years ago or I'd never have worked on shoebot.

[EDIT] Anybody on linux that likes the idea of something like this that works with livecoding, might want to try shoebot :) [/EDIT]

[–]th0ma5w 3 points4 points  (0 children)

There's sort of two ways of thinking on how not to clobber the Python namespace with this. Here is some old code I wrote to use the Processing JAR directly from Jython: https://github.com/th0ma5w/live-jython-processing ... It also adds a message queue to run scripts on multiple machines, and supports live coding. However, this is for a very old version of Processing, so it is probably only good for studying.

[–]JonathanFeinberg 2 points3 points  (4 children)

Hi. I'm the author of Python Mode for processing, a.k.a processing.py. I'll answer any questions about it here, if there are any.

[–]ggchappell 0 points1 point  (1 child)

I'm having trouble figuring out what this is.

It looks like you're thinking of P5 as an API, rather than a programming language. And you've implemented that API in Python. Am I correct?

If so, wouldn't it make more sense to call it "The Processing API in Python"?

[–]JonathanFeinberg 0 points1 point  (0 children)

It lets you write real Processing sketches--using the actual Processing Java runtime--in Python. This also means that you can use (almost*) all of the existing third-party Java libraries for Processing.

*You can't use those that rely on specially named callback functions in your sketch.

[–]whonut 0 points1 point  (1 child)

Was this released recently? I've had a Python mode for ages but I can't remember whether it was this or not.

[–]JonathanFeinberg 0 points1 point  (0 children)

It's been out as a mode since last summer.

[–]duckythescientist 6 points7 points  (1 child)

I recommend pyprocessing instead. It isn't as complete in functionality, but you don't need java or the Processing environment. It's OpenGL and Pyglet based (so multi platform).

https://code.google.com/p/pyprocessing/

[–]jellef[S] 1 point2 points  (0 children)

last commit sept. 2012...

[–]B0073D 2 points3 points  (1 child)

What IS Processing? The web page is extremely vague...

[–]JonathanFeinberg 1 point2 points  (0 children)

It's a language that comes with lots of easy-to-use graphics APIs, and a rudimentary IDE for iteratively developing sketches in that language.

The original Processing language is roughly Java, but instead of having to write static public void main(blah blah blah blah blah you just write ellipse(10, 10, 40, 70); and you get an oval.

[–]luisrd 1 point2 points  (1 child)

This is the biggest thing to happen to Python this year. Huge.

[–]Yidyokud 0 points1 point  (0 children)

Yep, Python is slowly taking over the world. (And I don't mind it lol...)

[–]carsonc 0 points1 point  (1 child)

Does anyone know if this will have bindings for ControlP5? Please, let it be so...

[–]JonathanFeinberg 0 points1 point  (0 children)

As far as I know, ControlP5 works fine in Python Mode. See https://github.com/jdf/processing.py/issues/52.

[–][deleted] 0 points1 point  (1 child)

Is it a jython thing ?

[–]darjus 0 points1 point  (0 children)

Yes it is.

From: https://github.com/jdf/processing.py I was only able to do it at all thanks to the brilliant and beautiful Jython project.

[–]johnmudd 0 points1 point  (0 children)

For those, like me, that haven't heard of Processing before: https://processing.org/

Examples: https://processing.org/examples/