Is there a sort of API with which we can run processing.py in a server?

I am trying to figure out a way to create a web editor for processing.py using codemirror . I think I have to create a custom mode for processing.py for codemirror and also I have to figure out a way to run the code. If there’s some API running the code will be a bit easier in the server.

Also if you can help me creating codemirror or ACE custom mode for processing.py please do!!

I’m not familiar with CodeMirror, but it looks like creating the custom mode will be the easy part (it already appears to have a Python mode you could extend upon).

I’m guessing you’d like to create something like this?
https://trinket.io/processing

For ideas about running the code, check out this post:
https://discourse.processing.org/t/running-python-code-in-a-browser/236/6

2 Likes